Skip to content

Commit

Permalink
taking out the sexy. Adding better and more accurate coverage of files
Browse files Browse the repository at this point in the history
  • Loading branch information
djones committed Jul 28, 2010
1 parent 14d8cf0 commit fe2564a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions features/refinery/theme_generator.feature
Expand Up @@ -5,12 +5,12 @@ Feature: Theme generation

Scenario: Generating a theme with a name
Given I have a refinery application
When I generate a theme with the name of "sexy_layout"
Then I should have a directory named "sexy_layout"
And I should have a stylsheet named "sexy_layout/stylesheets/application.css"
And I should have a layout named "sexy_layout/views/layouts/application.html.erb"
And I should have a layout named "sexy_layout/views/pages/index.html.erb"
And I should have a layout named "sexy_layout/views/pages/show.html.erb"
And I should have a directory named "sexy_layout/javascripts"
And I should have a "LICENSE"
And I should have a "README"
When I generate a theme with the name of "modern"
Then I should have a directory named "modern"
And I should have a stylesheet named "modern/stylesheets/application.css"
And I should have a stylesheet named "modern/stylesheets/home.css"
And I should have a stylesheet named "modern/stylesheets/formatting.css"
And I should have a layout named "modern/views/layouts/application.html.erb"
And I should have a layout named "modern/views/pages/home.html.erb"
And I should have a layout named "modern/views/pages/show.html.erb"
And I should have a directory named "modern/javascripts"
Expand Up @@ -31,6 +31,6 @@
end

Then /^I should have a "([^"]*)"$/ do |name|
File.exist?(File.join(@tmp_refinery_app_root, '/themes', 'sexy_layout', name)).should be_true
File.exist?(File.join(@tmp_refinery_app_root, '/themes', 'modern', name)).should be_true
end

0 comments on commit fe2564a

Please sign in to comment.