spec/rack/env_spec.rb in rack-env-0.0.2 vs spec/rack/env_spec.rb in rack-env-0.0.3

- old
+ new

@@ -5,11 +5,11 @@ describe 'Rack::Env' do include Rack::Test::Methods before do # move current_dir as ./spec - Dir::chdir(File.dirname(File.dirname(__FILE__))) + Dir::chdir(File.dirname(File.dirname(__FILE__)) + '/tmp') end after(:all) do Dir::chdir(current_dir) end @@ -39,11 +39,11 @@ without_rack_env_app end it "should ENV['FOO'] is nil" do get '/' - ENV['FOO'].should be_nil + expect(ENV['FOO']).to eq nil end end context "When using Rack::Env" do context "without argument" do @@ -51,21 +51,21 @@ rack_env_app end it "should ENV['FOO'] == 'bar'" do get '/' - ENV['FOO'].should == "bar" + expect(ENV['FOO']).to eq "bar" end end context "with argument" do def app rack_env_app_with_argument end it "should ENV['BAZ'] == 'qux'" do get '/' - ENV['BAZ'].should == "qux" + expect(ENV['BAZ']).to eq "qux" end end end end