Permalink
Browse files

Added specs and bumped version

  • Loading branch information...
1 parent 2645144 commit 455a3519cd5b093f466eda6c1966dd63bbf34b88 @brendanjerwin brendanjerwin committed Mar 16, 2012
Showing with 12 additions and 4 deletions.
  1. +1 −1 .gitignore
  2. +1 −1 lib/guard/less/version.rb
  3. +10 −2 spec/guard/less_spec.rb
View
@@ -1,3 +1,3 @@
*.gem
Gemfile.lock
-
+.DS_Store
@@ -1,5 +1,5 @@
module Guard
module LessVersion
- VERSION = "0.1.0"
+ VERSION = "0.1.1"
end
end
View
@@ -23,6 +23,10 @@
it 'sets an empty :import_paths option' do
guard.options[:import_paths].should be_empty
end
+
+ it 'sets false for :compress' do
+ guard.options[:compress].should be_false
+ end
end
context 'when providing options' do
@@ -31,10 +35,15 @@
:all_after_change => false,
:all_on_start => false,
:output => 'public/stylesheets',
- :import_paths => ['lib/styles']
+ :import_paths => ['lib/styles'],
+ :compress => true
})
end
+ it 'sets :compress' do
+ guard.options[:compress].should be_true
+ end
+
it 'sets :all_after_change' do
guard.options[:all_after_change].should be_false
end
@@ -226,4 +235,3 @@ def write_stub_less_file(path, import=false)
end
end
end
-

0 comments on commit 455a351

Please sign in to comment.