Skip to content

Loading…

Broken link to development information in README #790

Merged
merged 2 commits into from

2 participants

@paav-o

No description provided.

@alindeman

Thanks for this! A separate pull request for the changes to the scaffold generator would have been nicer, but I'll go ahead and merge :)

@alindeman alindeman merged commit c25696b into rspec:master

1 check failed

Details default The Travis CI build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 8 additions and 8 deletions.
  1. +1 −1 README.md
  2. +7 −7 lib/generators/rspec/scaffold/templates/routing_spec.rb
View
2 README.md
@@ -438,7 +438,7 @@ for more info on Capybara integration.
See [http://github.com/rspec/rspec-dev](http://github.com/rspec/rspec-dev).
For `rspec-rails`-specific development information, see
-[DEV-README](https://github.com/rspec/rspec-rails/blob/master/DEV-README.md).
+[README_DEV](https://github.com/rspec/rspec-rails/blob/master/README_DEV.md).
# Also see
View
14 lib/generators/rspec/scaffold/templates/routing_spec.rb
@@ -6,32 +6,32 @@
<% unless options[:singleton] -%>
it "routes to #index" do
- get("/<%= ns_table_name %>").should route_to("<%= ns_table_name %>#index")
+ expect(:get => "/<%= ns_table_name %>").to route_to("<%= ns_table_name %>#index")
end
<% end -%>
it "routes to #new" do
- get("/<%= ns_table_name %>/new").should route_to("<%= ns_table_name %>#new")
+ expect(:get => "/<%= ns_table_name %>/new").to route_to("<%= ns_table_name %>#new")
end
it "routes to #show" do
- get("/<%= ns_table_name %>/1").should route_to("<%= ns_table_name %>#show", :id => "1")
+ expect(:get => "/<%= ns_table_name %>/1").to route_to("<%= ns_table_name %>#show", :id => "1")
end
it "routes to #edit" do
- get("/<%= ns_table_name %>/1/edit").should route_to("<%= ns_table_name %>#edit", :id => "1")
+ expect(:get => "/<%= ns_table_name %>/1/edit").to route_to("<%= ns_table_name %>#edit", :id => "1")
end
it "routes to #create" do
- post("/<%= ns_table_name %>").should route_to("<%= ns_table_name %>#create")
+ expect(:post => "/<%= ns_table_name %>").to route_to("<%= ns_table_name %>#create")
end
it "routes to #update" do
- put("/<%= ns_table_name %>/1").should route_to("<%= ns_table_name %>#update", :id => "1")
+ expect(:put => "/<%= ns_table_name %>/1").to route_to("<%= ns_table_name %>#update", :id => "1")
end
it "routes to #destroy" do
- delete("/<%= ns_table_name %>/1").should route_to("<%= ns_table_name %>#destroy", :id => "1")
+ expect(:delete => "/<%= ns_table_name %>/1").to route_to("<%= ns_table_name %>#destroy", :id => "1")
end
end
Something went wrong with that request. Please try again.