Skip to content

Commit

Permalink
Disable Rspec :should deprecation warning.
Browse files Browse the repository at this point in the history
For now we'll need to live with old-style RSpec syntax.
  • Loading branch information
nene committed Jun 21, 2015
1 parent 7070855 commit 8e7cdb8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ require 'rspec/core/rake_task'
desc "Runs RSpec testsuite (DEFAULT)"
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.rspec_opts = ["--color"] unless os_is_windows?
spec.pattern = "spec/**/*_spec.rb"
spec.pattern = [
"spec/spec_helper.rb",
"spec/**/*_spec.rb",
]
end

def load_sdk_vars
Expand Down
6 changes: 6 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Allow old :should syntax for specs
RSpec.configure do |config|
config.expect_with :rspec do |c|
c.syntax = [:expect, :should]
end
end

0 comments on commit 8e7cdb8

Please sign in to comment.