test_example.rb in toadhopper-sinatra-1.0.3 vs test_example.rb in toadhopper-sinatra-1.0.4

- old
+ new

@@ -1,8 +1,11 @@ -Bundler.setup(:default, :test) -Bundler.require(:test) +Bundler.setup +require 'exemplor' +require 'rr' +require 'rack/test' + $:.unshift "#{File.dirname(__FILE__)}/lib" require "#{File.dirname(__FILE__)}/example" Sinatra::Application.set :environment, :production @@ -30,11 +33,10 @@ eg "Posting" do post "/register", :name => "Billy", :password => "Bob" Check(@api_key).is("apikey") - - Check(@toadhopper.filters).is([/password/]) + Check(@toadhopper.send(:filters)).is([/password/]) Check(@error.class).is(RuntimeError) Check(@error.message).is("Kaboom!") Check(@options[:environment]).is(ENV.to_hash) \ No newline at end of file