rspectacular 0.62.0 → 0.62.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/bin/deploy +109 -0
  4. data/bin/rspectacular_test_bootstrap +3 -5
  5. data/lib/rspectacular/mock_authentications/omniauth/ebay.rb +9 -9
  6. data/lib/rspectacular/mock_authentications/omniauth/facebook.rb +6 -6
  7. data/lib/rspectacular/mock_authentications/omniauth/twitter.rb +6 -6
  8. data/lib/rspectacular/plugins.rb +1 -1
  9. data/lib/rspectacular/plugins/authentication.rb +3 -5
  10. data/lib/rspectacular/plugins/carrier_wave.rb +2 -2
  11. data/lib/rspectacular/plugins/code_climate.rb +1 -1
  12. data/lib/rspectacular/plugins/database_cleaner.rb +1 -1
  13. data/lib/rspectacular/plugins/devise.rb +4 -4
  14. data/lib/rspectacular/plugins/email.rb +3 -3
  15. data/lib/rspectacular/plugins/features.rb +8 -8
  16. data/lib/rspectacular/plugins/omniauth.rb +2 -2
  17. data/lib/rspectacular/plugins/rails/strong_parameters.rb +1 -1
  18. data/lib/rspectacular/plugins/referehencible.rb +1 -1
  19. data/lib/rspectacular/plugins/simple_cov.rb +1 -1
  20. data/lib/rspectacular/plugins/singleton.rb +1 -1
  21. data/lib/rspectacular/plugins/stripe.rb +3 -5
  22. data/lib/rspectacular/plugins/timecop.rb +2 -2
  23. data/lib/rspectacular/plugins/webmock.rb +2 -2
  24. data/lib/rspectacular/spec_helpers/rails_engine.rb +1 -1
  25. data/lib/rspectacular/support/focused.rb +2 -2
  26. data/lib/rspectacular/support/garbage_collection.rb +3 -5
  27. data/lib/rspectacular/support/pending.rb +1 -1
  28. data/lib/rspectacular/support/rails.rb +1 -1
  29. data/lib/rspectacular/support/selenium.rb +1 -1
  30. data/lib/rspectacular/vcr_matchers/uri_without_trailing_id.rb +1 -1
  31. data/lib/rspectacular/version.rb +1 -1
  32. metadata +6 -7
  33. data/spec/spec_helper.rb +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88d577db3192ebc71163baa570968eafcc6b353f
4
- data.tar.gz: 47174cd03bfa75284bd033195c00de5bf644ee08
3
+ metadata.gz: 003ceca5c4704416e8487c8e5fd5398f615eb3c2
4
+ data.tar.gz: 83ee296a5c39086425de909198415c6aea84f2b7
5
5
  SHA512:
6
- metadata.gz: 58818715d6a319770dbed0746929581669382e55f4e0ebd1508d911c1898ca813f140c71c02b7468f9ae5a5e0383b6327e9f620edace7d07e116b192b1b591f0
7
- data.tar.gz: bcfbfd60ea533bc6938571538a8f4938a146dbb82b458e03fac1d0094736949d58db4e0bca7bf41a8b8cf5de811c24b414abff550b43f52a8609a9e8baf8a6b0
6
+ metadata.gz: 2131467600d9276c6e2fac523d8b9baeabb4128163e436e777e1bf6d5096d2a234658ebac1e973cf9ae2fdbb384fc40fdb7ec2daacc678780648035dcac607c9
7
+ data.tar.gz: 48ff948a1cd472ecd714cc3aeb99c595ac49d44fd19dd2ac732341f1099198bda1cf7c73ce13a624267734fc9a2a452567f7b271e0a750005c8e195267b1d302
data/Rakefile CHANGED
@@ -1 +1 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
data/bin/deploy ADDED
@@ -0,0 +1,109 @@
1
+ #!/usr/bin/env bash
2
+
3
+ gem_name="rspectacular"
4
+ current_sha="$(git rev-parse HEAD)"
5
+
6
+ function chamber_env_var {
7
+ local var_key="$1"
8
+
9
+ bundle exec chamber show --as-env |
10
+ grep $var_key |
11
+ sed -r -n 's/.*=\"(.*)\"/\1/p'
12
+ }
13
+
14
+ export RUBYGEMS_API_KEY="$(chamber_env_var RUBYGEMS_API_KEY)"
15
+
16
+ if [ -n "$CIRCLECI" ]; then
17
+ echo ""
18
+ echo "Adding Rubygems Credentials to $HOME/.netrc"
19
+ echo "--------------------------------------------------------------------------------"
20
+ echo ""
21
+
22
+ echo ":rubygems_api_key: ${RUBYGEMS_API_KEY}" > $HOME/.gem/credentials
23
+ chmod 0600 $HOME/.gem/credentials
24
+
25
+ echo "Done."
26
+ fi
27
+
28
+ echo ""
29
+ echo "Detecting the Version to Release"
30
+ echo "--------------------------------------------------------------------------------"
31
+ latest_release_tag="$(git tag | grep -E 'releases' | sort --version-sort | tail -n 1)"
32
+
33
+ if [ -n "$latest_release_tag" ]; then
34
+ echo "The latest release detected was '${latest_release_tag}'."
35
+ echo ""
36
+ else
37
+ echo "No release tag found."
38
+ echo "Skipping deploy."
39
+ echo ""
40
+
41
+ exit
42
+ fi
43
+
44
+ echo ""
45
+ echo "Current Version Information"
46
+ echo "--------------------------------------------------------------------------------"
47
+ echo ""
48
+ echo "Current SHA: $(git rev-parse HEAD)"
49
+ echo "Current Tag: $(git describe --exact-match HEAD 2> /dev/null)"
50
+ echo ""
51
+
52
+ if [ -n "$(git describe --exact-match HEAD 2> /dev/null | grep $latest_release_tag)" ]; then
53
+ echo "The commit being built contains the release tag. Releasing now."
54
+ else
55
+ echo "The commit does not contain the latest release tag."
56
+ echo "Skipping deploy."
57
+ echo ""
58
+
59
+ exit
60
+ fi
61
+
62
+ echo ""
63
+ echo "Pushing to Rubygems"
64
+ echo "--------------------------------------------------------------------------------"
65
+ deploy_successful=false
66
+
67
+ gem build *.gemspec | tee push.log
68
+
69
+ gem_file="$(cat push.log | grep -o ' File: .*' | sed -e 's- File: \(.*\)-\1-')"
70
+
71
+ if gem push $gem_file | tee push.log; then
72
+ deploy_successful=true
73
+ fi
74
+
75
+ if [[ "$deploy_successful" == "false" ]]; then
76
+ echo "There was a problem pushing your gem to Rubygems."
77
+ echo ""
78
+ echo "Aborting deploy"
79
+ echo ""
80
+ fi
81
+
82
+ echo ""
83
+ echo "Sending notification to Slack"
84
+ echo "--------------------------------------------------------------------------------"
85
+
86
+ release_message=""
87
+ color=""
88
+
89
+ if [ -n "$(cat push.log | grep 'Successfully registered gem')" ]; then
90
+ release_message="${gem_name} ${latest_release_tag} has been successfully released to Rubygems"
91
+ color="success"
92
+ elif [ -n "$(cat push.log | grep 'Repushing of gem versions is not allowed')" ]; then
93
+ release_message="${gem_name} ${latest_release_tag} has already been pushed to Rubygems"
94
+ color="warning"
95
+ else
96
+ release_message="There was a problem pushing ${gem_name} ${latest_release_tag} to Rubygems"
97
+ color="danger"
98
+ fi
99
+
100
+ curl -X POST --data-urlencode "payload={\"username\": \"rubygems\", \"text\": \"${release_message}\", \"icon_url\": \"https://pbs.twimg.com/profile_images/535452674729078784/5jL6-BA5_400x400.jpeg\"}" https://hooks.slack.com/services/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
101
+
102
+ if ! $deploy_successful; then
103
+ exit 1;
104
+ fi
105
+
106
+ echo ""
107
+ echo ""
108
+ echo "Deploy completed"
109
+ echo ""
@@ -9,14 +9,12 @@ trap 2 do
9
9
  exit
10
10
  end
11
11
 
12
- Dir.mkdir(fifo_dir) unless Dir.exists?(fifo_dir)
12
+ Dir.mkdir(fifo_dir) unless Dir.exist?(fifo_dir)
13
13
 
14
- unless File.exists?(fifo_path)
15
- %x{mkfifo #{fifo_path}}
16
- end
14
+ `mkfifo #{fifo_path}` unless File.exist?(fifo_path)
17
15
 
18
16
  input = open(fifo_path, 'r+')
19
17
 
20
- while true do
18
+ loop do
21
19
  system input.gets
22
20
  end
@@ -6,17 +6,17 @@ module Ebay
6
6
  'provider' => 'ebay',
7
7
  'uid' => 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
8
8
  'info' =>
9
- {
10
- 'ebay_id' => 'my_username',
11
- 'ebay_token' => 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
12
- 'email' => 'username@example.com',
13
- 'full_name' => 'Gorby Thunderhorse',
14
- 'country' => 'US'
15
- },
9
+ {
10
+ 'ebay_id' => 'my_username',
11
+ 'ebay_token' => 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
12
+ 'email' => 'username@example.com',
13
+ 'full_name' => 'Gorby Thunderhorse',
14
+ 'country' => 'US',
15
+ },
16
16
  'credentials' => {},
17
17
  'extra' => {
18
- 'internal_return_to' => nil
19
- }
18
+ 'internal_return_to' => nil,
19
+ },
20
20
  )
21
21
  end
22
22
  end
@@ -6,7 +6,7 @@ module Facebook
6
6
  'provider' => 'facebook',
7
7
  'uid' => '100002971692646',
8
8
  'credentials' => {
9
- 'token' => 'my_facebook_token'
9
+ 'token' => 'my_facebook_token',
10
10
  },
11
11
  'info' => {
12
12
  'name' => 'Sharon Letuchysky',
@@ -20,8 +20,8 @@ module Facebook
20
20
  'phone' => nil,
21
21
  'urls' => {
22
22
  'Facebook' => 'http://www.facebook.com/profile.php?id=100002971692646',
23
- 'Website' => nil
24
- }
23
+ 'Website' => nil,
24
+ },
25
25
  },
26
26
  'extra' => {
27
27
  'user_hash' => {
@@ -33,9 +33,9 @@ module Facebook
33
33
  'link' => 'http://www.facebook.com/profile.php?id=100002971692646',
34
34
  'gender' => 'female',
35
35
  'locale' => 'en_US',
36
- 'updated_time' => '2011-09-11T17:00:51+0000'
37
- }
38
- }
36
+ 'updated_time' => '2011-09-11T17:00:51+0000',
37
+ },
38
+ },
39
39
  )
40
40
  end
41
41
  end
@@ -6,7 +6,7 @@ module Twitter
6
6
  'provider' => 'twitter',
7
7
  'uid' => '100002971692646',
8
8
  'credentials' => {
9
- 'token' => 'my_twitter_token'
9
+ 'token' => 'my_twitter_token',
10
10
  },
11
11
  'info' => {
12
12
  'name' => 'Sharon Letuchysky',
@@ -20,8 +20,8 @@ module Twitter
20
20
  'phone' => nil,
21
21
  'urls' => {
22
22
  'Facebook' => 'http://www.facebook.com/profile.php?id=100002971692646',
23
- 'Website' => nil
24
- }
23
+ 'Website' => nil,
24
+ },
25
25
  },
26
26
  'extra' => {
27
27
  'user_hash' => {
@@ -33,9 +33,9 @@ module Twitter
33
33
  'link' => 'http://www.facebook.com/profile.php?id=100002971692646',
34
34
  'gender' => 'female',
35
35
  'locale' => 'en_US',
36
- 'updated_time' => '2011-09-11T17:00:51+0000'
37
- }
38
- }
36
+ 'updated_time' => '2011-09-11T17:00:51+0000',
37
+ },
38
+ },
39
39
  )
40
40
  end
41
41
  end
@@ -1,3 +1,3 @@
1
1
  Dir[File.expand_path('../plugins/**/*.rb', __FILE__)].
2
- reject { |filename| filename.match /(code_climate|simple_cov)\.rb\z/ }.
2
+ reject { |filename| filename.match(/(code_climate|simple_cov)\.rb\z/) }.
3
3
  each { |filename| require filename }
@@ -1,5 +1,5 @@
1
1
  RSpec.configure do |config|
2
- config.around(:each, mock_auth: lambda { |v| !!v }) do |example|
2
+ config.around(:each, mock_auth: ->(v) { !!v }) do |example|
3
3
  options = example.metadata[:mock_auth]
4
4
 
5
5
  klass = case options
@@ -48,7 +48,7 @@ RSpec.configure do |config|
48
48
  :authenticate
49
49
  end
50
50
 
51
- authentication_successful = if options.is_a?(Hash) && options.has_key?(:status)
51
+ authentication_successful = if options.is_a?(Hash) && options.key?(:status)
52
52
  options[:status] == :authorized
53
53
  else
54
54
  true
@@ -65,8 +65,6 @@ RSpec.configure do |config|
65
65
 
66
66
  authentication_controller_class.send(:remove_method, current_class_method)
67
67
 
68
- unless options.is_a?(Hash) && options[:strategy] == :instance
69
- instance.delete
70
- end
68
+ instance.delete unless options.is_a?(Hash) && options[:strategy] == :instance
71
69
  end
72
70
  end
@@ -7,7 +7,7 @@ begin
7
7
  require 'carrierwave/test/matchers'
8
8
 
9
9
  RSpec.configure do |config|
10
- config.include CarrierWave::Test::Matchers, :file_attachment => true
10
+ config.include CarrierWave::Test::Matchers, file_attachment: true
11
11
  end
12
12
 
13
13
  CarrierWave.configure do |config|
@@ -17,7 +17,7 @@ begin
17
17
  end
18
18
 
19
19
  RSpec.configure do |config|
20
- config.around(:each, :file_attachment => true) do |example|
20
+ config.around(:each, file_attachment: true) do |example|
21
21
  previous_carrierwave_processing_mode = subject.class.enable_processing
22
22
  previous_carrierwave_storage_mode = subject.class.storage
23
23
 
@@ -1,5 +1,5 @@
1
1
  begin
2
- unless RUBY_VERSION.match /\A1\.8/
2
+ unless RUBY_VERSION.match(/\A1\.8/)
3
3
  require 'codeclimate-test-reporter'
4
4
 
5
5
  CodeClimate::TestReporter.start
@@ -21,7 +21,7 @@ begin
21
21
  DatabaseCleaner.strategy = :transaction
22
22
  end
23
23
 
24
- config.before(:each, :js => true) do
24
+ config.before(:each, js: true) do
25
25
  DatabaseCleaner.strategy = :truncation
26
26
  end
27
27
 
@@ -8,14 +8,14 @@ begin
8
8
  Devise.stretches = 1
9
9
 
10
10
  RSpec.configure do |config|
11
- config.include Devise::TestHelpers, :type => :controller
12
- config.include Warden::Test::Helpers, :type => :feature
11
+ config.include Devise::TestHelpers, type: :controller
12
+ config.include Warden::Test::Helpers, type: :feature
13
13
 
14
- config.before(:all, :type => :feature) do |example|
14
+ config.before(:all, type: :feature) do |_example|
15
15
  Warden.test_mode!
16
16
  end
17
17
 
18
- config.before(:each, :type => :controller) do |example|
18
+ config.before(:each, type: :controller) do |_example|
19
19
  @request.env['devise.mapping'] = Devise.mappings[:user]
20
20
  end
21
21
  end
@@ -12,15 +12,15 @@ begin
12
12
  require 'email_spec'
13
13
 
14
14
  RSpec.configure do |config|
15
- config.include EmailSpec::Helpers, :email => true
16
- config.include EmailSpec::Matchers, :email => true
15
+ config.include EmailSpec::Helpers, email: true
16
+ config.include EmailSpec::Matchers, email: true
17
17
  end
18
18
  rescue LoadError
19
19
  end
20
20
 
21
21
  if defined? ActionMailer
22
22
  RSpec.configure do |config|
23
- config.after(:each, :email => true) do
23
+ config.after(:each, email: true) do
24
24
  ActionMailer::Base.deliveries.clear
25
25
  end
26
26
  end
@@ -14,19 +14,19 @@ module Capybara
14
14
  module Features
15
15
  def self.included(base)
16
16
  base.instance_eval do
17
- alias :background :before
18
- alias :scenario :it
19
- alias :xscenario :xit
20
- alias :given :let
21
- alias :given! :let!
22
- alias :feature :describe
17
+ alias_method :background, :before
18
+ alias_method :scenario, :it
19
+ alias_method :xscenario, :xit
20
+ alias_method :given, :let
21
+ alias_method :given!, :let!
22
+ alias_method :feature, :describe
23
23
  end
24
24
  end
25
25
  end
26
26
  end
27
27
 
28
28
  def self.feature(*args, &block)
29
- options = if args.last.is_a?(Hash) then args.pop else {} end
29
+ options = args.last.is_a?(Hash) ? args.pop : {}
30
30
  options[:capybara_feature] = true
31
31
  options[:type] = :feature
32
32
  options[:caller] ||= caller
@@ -35,4 +35,4 @@ def self.feature(*args, &block)
35
35
  describe(*args, &block)
36
36
  end
37
37
 
38
- RSpec.configuration.include Capybara::Features, :capybara_feature => true
38
+ RSpec.configuration.include Capybara::Features, capybara_feature: true
@@ -20,7 +20,7 @@ begin
20
20
  # Except we don't want OmniAuth to fake anything when doing live tests
21
21
  #
22
22
  RSpec.configure do |config|
23
- config.around(:each, :js => true) do |example|
23
+ config.around(:each, js: true) do |example|
24
24
  previous_omniauth_test_mode = OmniAuth.config.test_mode
25
25
  OmniAuth.config.test_mode = false
26
26
 
@@ -33,7 +33,7 @@ begin
33
33
  OmniAuth.config.test_mode = previous_omniauth_test_mode
34
34
  end
35
35
 
36
- config.before(:each, type: :controller, mock_oauth: lambda { |v| !!v }) do |example|
36
+ config.before(:each, type: :controller, mock_oauth: ->(v) { !!v }) do |example|
37
37
  if example.metadata[:mock_oauth].is_a? Symbol
38
38
  request.env['omniauth.auth'] = OmniAuth.config.mock_auth[example.metadata[:mock_oauth]]
39
39
  else
@@ -1,5 +1,5 @@
1
1
  if Object.const_defined?('ActionController::Parameters')
2
- always_permitted_parameters = %w(id)
2
+ always_permitted_parameters = %w{id}
3
3
 
4
4
  if ActionController::Parameters.respond_to?(:always_permitted_parameters)
5
5
  ActionController::Parameters.always_permitted_parameters += always_permitted_parameters
@@ -6,7 +6,7 @@ begin
6
6
  require 'referehencible'
7
7
 
8
8
  RSpec.configure do |config|
9
- config.before(:each, :mock_refs => lambda { |v| !!v }) do |example|
9
+ config.before(:each, mock_refs: ->(v) { !!v }) do |example|
10
10
  reference = if example.metadata[:mock_refs].is_a? TrueClass
11
11
  'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
12
12
  else
@@ -1,5 +1,5 @@
1
1
  begin
2
- unless RUBY_VERSION.match /\A1\.8/
2
+ unless RUBY_VERSION.match(/\A1\.8/)
3
3
  require 'simplecov'
4
4
 
5
5
  SimpleCov.start do
@@ -3,7 +3,7 @@
3
3
  ##############################################################################
4
4
 
5
5
  RSpec.configure do |config|
6
- config.around(:each, :singletons => lambda { |v| !!v }) do |example|
6
+ config.around(:each, singletons: ->(v) { !!v }) do |example|
7
7
  require 'singleton'
8
8
 
9
9
  options = example.metadata[:singletons]
@@ -18,13 +18,11 @@ begin
18
18
  end
19
19
 
20
20
  begin
21
- Stripe::Plan.all(:count => 100).each do |plan|
22
- if plan.id.match(/test/i) || plan.name.match(/test/i)
23
- plan.delete
24
- end
21
+ Stripe::Plan.all(count: 100).each do |plan|
22
+ plan.delete if plan.id.match(/test/i) || plan.name.match(/test/i)
25
23
  end
26
24
 
27
- Stripe::Customer.all(:count => 100).each(&:delete)
25
+ Stripe::Customer.all(count: 100).each(&:delete)
28
26
  ensure
29
27
  VCR.turn_on! if defined?(VCR) && vcr_turned_on
30
28
  WebMock.allow_net_connect! if defined?(WebMock) && webmock_net_connect
@@ -6,11 +6,11 @@ begin
6
6
  require 'timecop'
7
7
 
8
8
  RSpec.configure do |config|
9
- config.around(:each, :time_mock => lambda { |v| !!v }) do |example|
9
+ config.around(:each, time_mock: ->(v) { !!v }) do |example|
10
10
  options = example.metadata[:time_mock]
11
11
  options = case options
12
12
  when Time
13
- { :time => options }
13
+ { time: options }
14
14
  when FalseClass
15
15
  false
16
16
  when TrueClass
@@ -6,11 +6,11 @@ begin
6
6
  require 'webmock/rspec'
7
7
 
8
8
  RSpec.configure do |config|
9
- config.around(:each, :web_mock => lambda { |v| !!v }) do |example|
9
+ config.around(:each, web_mock: ->(v) { !!v }) do |example|
10
10
  options = example.metadata[:web_mock]
11
11
  options = case options
12
12
  when TrueClass
13
- { :allow_localhost => true }
13
+ { allow_localhost: true }
14
14
  end
15
15
 
16
16
  WebMock.disable_net_connect!(options)
@@ -1,4 +1,4 @@
1
- ENV["RAILS_ENV"] ||= 'test'
1
+ ENV['RAILS_ENV'] ||= 'test'
2
2
 
3
3
  require File.expand_path(File.join('..', 'active_record_connection_setup'), __FILE__)
4
4
  require File.join(Dir.pwd, 'spec', 'dummy', 'config', 'environment')
@@ -1,5 +1,5 @@
1
1
  RSpec.configure do |config|
2
- config.filter_run :focused => true
3
- config.alias_example_to :fit, :focused => true
2
+ config.filter_run focused: true
3
+ config.alias_example_to :fit, focused: true
4
4
  config.run_all_when_everything_filtered = true
5
5
  end
@@ -14,12 +14,10 @@ module Rspectacular
14
14
  if enabled? && over_deferrment_threshold?
15
15
  cycle_garbage_collector
16
16
 
17
- garbage_last_collected_at = Time.now
17
+ self.garbage_last_collected_at = Time.now
18
18
  end
19
19
  end
20
20
 
21
- private
22
-
23
21
  def self.cycle_garbage_collector
24
22
  GC.enable
25
23
  GC.start
@@ -42,8 +40,8 @@ module Rspectacular
42
40
  @garbage_last_collected_at || Time.now
43
41
  end
44
42
 
45
- def self.garbage_last_collected_at=(value)
46
- @garbage_last_collected_at = value
43
+ class << self
44
+ attr_writer :garbage_last_collected_at
47
45
  end
48
46
  end
49
47
  end
@@ -1,3 +1,3 @@
1
1
  RSpec.configure do |config|
2
- config.alias_example_to :pit, :pending => true
2
+ config.alias_example_to :pit, pending: true
3
3
  end
@@ -7,7 +7,7 @@ if defined? RSpec::Rails
7
7
  config.infer_spec_type_from_file_location! if config.respond_to?(:infer_spec_type_from_file_location!)
8
8
 
9
9
  if Pathname.pwd.join('spec', 'dummy', 'config', 'environment.rb').exist?
10
- config.include Rspectacular::NamespacedEngineControllerRouteFix, :type => :controller
10
+ config.include Rspectacular::NamespacedEngineControllerRouteFix, type: :controller
11
11
  end
12
12
  end
13
13
  end
@@ -1,4 +1,4 @@
1
1
  # For when you just have to know what the hell the browser is doing
2
2
  RSpec.configure do |config|
3
- config.alias_example_to :sit, :focused => true, :js => true, :driver => :selenium
3
+ config.alias_example_to :sit, focused: true, js: true, driver: :selenium
4
4
  end
@@ -32,6 +32,6 @@ VCR.configure do |config|
32
32
  end
33
33
 
34
34
  config.register_request_matcher :uri_without_trailing_id do |request, vcr_cassette_request|
35
- Rspectacular::VcrMatchers::UriWithoutTrailingId.new(%r(/\d+/?\z)).call(request, vcr_cassette_request)
35
+ Rspectacular::VcrMatchers::UriWithoutTrailingId.new(%r{/\d+/?\z}).call(request, vcr_cassette_request)
36
36
  end
37
37
  end
@@ -1,3 +1,3 @@
1
1
  module Rspectacular
2
- VERSION = '0.62.0'
2
+ VERSION = '0.62.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspectacular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.62.0
4
+ version: 0.62.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jfelchner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-17 00:00:00.000000000 Z
11
+ date: 2015-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -42,6 +42,7 @@ description: We rock some RSpec configurations and matchers like it ain't nobody
42
42
  bidnezz.
43
43
  email: accounts+git@thekompanee.com
44
44
  executables:
45
+ - deploy
45
46
  - rspectacular_test_bootstrap
46
47
  extensions: []
47
48
  extra_rdoc_files:
@@ -49,6 +50,7 @@ extra_rdoc_files:
49
50
  files:
50
51
  - README.md
51
52
  - Rakefile
53
+ - bin/deploy
52
54
  - bin/rspectacular_test_bootstrap
53
55
  - lib/rspectacular.rb
54
56
  - lib/rspectacular/helpers.rb
@@ -101,7 +103,6 @@ files:
101
103
  - lib/rspectacular/support/selenium.rb
102
104
  - lib/rspectacular/vcr_matchers/uri_without_trailing_id.rb
103
105
  - lib/rspectacular/version.rb
104
- - spec/spec_helper.rb
105
106
  homepage: https://github.com/jfelchner/rspectacular
106
107
  licenses: []
107
108
  metadata: {}
@@ -122,10 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
123
  version: '0'
123
124
  requirements: []
124
125
  rubyforge_project: rspectacular
125
- rubygems_version: 2.2.2
126
+ rubygems_version: 2.4.6
126
127
  signing_key:
127
128
  specification_version: 4
128
129
  summary: RSpec Support And Matchers
129
- test_files:
130
- - spec/spec_helper.rb
131
- has_rdoc:
130
+ test_files: []
data/spec/spec_helper.rb DELETED
@@ -1,6 +0,0 @@
1
- require 'rspectacular'
2
-
3
- Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |f| require f }
4
-
5
- RSpec.configure do |config|
6
- end