Skip to content
Browse files

Test for application.css injecting

  • Loading branch information...
1 parent f49329a commit ecec6cb7a10750f131bb894bec7a60b0f78f0b42 @kugaevsky committed Sep 25, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 spec/generators/install_generator_spec.rb
View
8 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|
@@ -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.
Something went wrong with that request. Please try again.