From b2fcf06869d205c2344a67d21d066473614b7674 Mon Sep 17 00:00:00 2001 From: Bryan Talbot Date: Fri, 19 Jun 2020 17:30:00 -0700 Subject: [PATCH] fix naming of Omniauth module to OmniAuth for Omniauth::Apple::VERSION and add tests --- lib/omniauth/apple/version.rb | 2 +- omniauth-apple.gemspec | 2 +- spec/omniauth/apple/vesion_spec.rb | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 spec/omniauth/apple/vesion_spec.rb diff --git a/lib/omniauth/apple/version.rb b/lib/omniauth/apple/version.rb index af81da2..d68b61f 100644 --- a/lib/omniauth/apple/version.rb +++ b/lib/omniauth/apple/version.rb @@ -1,4 +1,4 @@ -module Omniauth +module OmniAuth module Apple VERSION = "0.0.3" end diff --git a/omniauth-apple.gemspec b/omniauth-apple.gemspec index e4f21f6..a60bd57 100644 --- a/omniauth-apple.gemspec +++ b/omniauth-apple.gemspec @@ -5,7 +5,7 @@ require "omniauth/apple/version" Gem::Specification.new do |spec| spec.name = "omniauth-apple" - spec.version = Omniauth::Apple::VERSION + spec.version = OmniAuth::Apple::VERSION spec.authors = ["nhosoya", "Fabian Jäger"] spec.email = ["hnhnnhnh@gmail.com", "fabian@mailbutler.io"] diff --git a/spec/omniauth/apple/vesion_spec.rb b/spec/omniauth/apple/vesion_spec.rb new file mode 100644 index 0000000..e538da9 --- /dev/null +++ b/spec/omniauth/apple/vesion_spec.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +require 'spec_helper' +require_relative '../../../lib/omniauth/apple/version' + +describe OmniAuth::Apple do + it 'has VERSION' do + expect(OmniAuth::Apple::VERSION).to be_a String + end + + it 'is correct' do + expect(Gem::Version.correct?(OmniAuth::Apple::VERSION)).to be true + end +end