Permalink
Browse files

Added spec to test that routes for the new resource are appended to t…

…he config/routes.rb file as reported in GH-1885
  • Loading branch information...
1 parent 5ed4652 commit 3b067212d3f2e201cff13924755c05b232d41b72 @brenes brenes committed Aug 17, 2012
@@ -33,6 +33,12 @@ module Refinery
end
}
end
+
+ it "appends routes to the routes file" do
+ File.open("#{destination_root}/vendor/extensions/rspec_product_tests/config/routes.rb") do |file|
+ file.grep(%r{rspec_item_tests}).count.should eq(2)
+ end
+ end
end
end

0 comments on commit 3b06721

Please sign in to comment.