Skip to content

Commit

Permalink
update for grape 0.3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alovak committed Feb 28, 2013
1 parent 13749cc commit 78bfdce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion grape-rabl.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
gem.require_paths = ["lib"]
gem.version = Grape::Rabl::VERSION

gem.add_dependency "grape", "~> 0.2.3"
gem.add_dependency "grape", "~> 0.3.1"
gem.add_dependency "rabl"
gem.add_dependency "tilt"
gem.add_dependency "i18n"
Expand Down
8 changes: 6 additions & 2 deletions spec/grape_rabl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def app

it "should raise error about root directory" do
subject.get("/home", :rabl => true){}
lambda{ get "/home" }.should raise_error("Use Rack::Config to set 'api.tilt.root' in config.ru")
get "/home"
last_response.status.should == 500
last_response.body.should include "Use Rack::Config to set 'api.tilt.root' in config.ru"
end


Expand All @@ -39,7 +41,9 @@ def app

it "should not raise error about root directory" do
subject.get("/home", :rabl => true){}
lambda{ get "/home" }.should_not raise_error("Use Rack::Config to set 'api.tilt.root' in config.ru")
get "/home"
last_response.status.should == 500
last_response.body.should_not include "Use Rack::Config to set 'api.tilt.root' in config.ru"
end

["user", "user.rabl"].each do |rabl_option|
Expand Down

0 comments on commit 78bfdce

Please sign in to comment.