Skip to content

Commit

Permalink
Test for application.css injecting
Browse files Browse the repository at this point in the history
  • Loading branch information
kugaevsky committed Sep 24, 2012
1 parent f49329a commit ecec6cb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/generators/install_generator_spec.rb
@@ -1,8 +1,6 @@
require 'spec_helper'

describe Mousetrap::Generators::InstallGenerator do
# subject { Mousetrap::Generators::InstallGenerator }

context "with mousetrap:install" do
it "should generate keybindings.js.coffee file" do
subject.should generate("app/assets/javascripts/keybindings.js.coffee") { |content|
Expand All @@ -15,5 +13,11 @@
content.should =~ /\/\/= require mousetrap\n/
}
end

it "should inject require mousetrap into application.css" do
subject.should generate("app/assets/stylesheets/application.css") { |content|
content.should =~ /\s\*= require mousetrap\n/
}
end
end
end

0 comments on commit ecec6cb

Please sign in to comment.