Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaned up the merb-slice generator, added requests specs
- Loading branch information
Showing
11 changed files
with
83 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 0 additions & 71 deletions
71
merb-slices/lib/generators/templates/full/spec/controllers/main_spec.rb
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
merb-slices/lib/generators/templates/full/spec/requests/main_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
require File.join(File.dirname(__FILE__), '..', 'spec_helper.rb') | ||
|
||
describe "/<%= base_name %>/" do | ||
|
||
before(:all) do | ||
mount_slice | ||
end | ||
|
||
describe "GET /<%= base_name %>/" do | ||
|
||
before(:each) do | ||
@response = request("/") | ||
end | ||
|
||
it "should be successful" do | ||
@response.status.should be_successful | ||
end | ||
|
||
# This is just an example of what you can do | ||
# You can also use the other webrat methods to click links, | ||
# fill up forms etc... | ||
it "should render the default slice layout" do | ||
@response.should have_tag(:h1, :content => "<%= module_name %> Slice") | ||
@response.should have_selector("div#container div#main") | ||
@response.should have_xpath("//div[@id='container']/div[@id='main']") | ||
end | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters