Skip to content

Commit

Permalink
Added spec to test that routes for the new resource are appended to t…
Browse files Browse the repository at this point in the history
…he config/routes.rb file as reported in GH-1885
  • Loading branch information
brenes authored and parndt committed Aug 22, 2012
1 parent 0c5694d commit 4f15b5e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f15b5e

Please sign in to comment.