spec/cli_spec.rb in wordless-0.1.0 vs spec/cli_spec.rb in wordless-0.2.0
- old
+ new
@@ -101,9 +101,23 @@
content.should =~ %r|Directory 'wp-content/themes' not found|
end
end
end
+ context "#compile", :now => true do
+ context "with a valid Wordless installation" do
+ before :each do
+ Wordless::CLI.start ['new', 'myapp']
+ end
+
+ it "compiles static assets" do
+ Wordless::CLI.start ['compile']
+ File.exists?('wp-content/themes/myapp/assets/stylesheets/screen.css').should eq true
+ File.exists?('wp-content/themes/myapp/assets/javascripts/application.js').should eq true
+ end
+ end
+ end
+
after :each do
Dir.chdir(@original_wd)
%w(tmp/wordpress tmp/myapp).each do |dir|
FileUtils.rm_rf(dir) if File.directory? dir
end
\ No newline at end of file