Skip to content
Browse files

Make development environment easier to work with

  • Loading branch information...
1 parent ae814f9 commit b8cf774a892d51e79aa83e33e545363ae2dded9d @shayfrendt shayfrendt committed Oct 19, 2011
Showing with 33 additions and 0 deletions.
  1. +3 −0 Gemfile
  2. +10 −0 Gemfile.lock
  3. +15 −0 Guardfile
  4. +5 −0 spec/spec_helper.rb
View
3 Gemfile
@@ -9,4 +9,7 @@ group :test do
gem 'factory_girl'
gem 'fakeweb'
gem 'faker'
+ gem 'guard-rspec', '~> 0.5.0', :require => false
+ gem 'growl', '~> 1.0.3', :require => false
+ gem 'rb-fsevent', '~> 0.4.2', :require => false
end
View
10 Gemfile.lock
@@ -22,9 +22,15 @@ GEM
rspec (~> 2.0)
rspec-instafail (~> 0.1.8)
ruby-progressbar (~> 0.0.10)
+ growl (1.0.3)
+ guard (0.8.7)
+ thor (~> 0.14.6)
+ guard-rspec (0.5.0)
+ guard (>= 0.8.4)
i18n (0.6.0)
multi_json (1.0.3)
rake (0.9.2)
+ rb-fsevent (0.4.3.1)
rspec (2.6.0)
rspec-core (~> 2.6.0)
rspec-expectations (~> 2.6.0)
@@ -35,6 +41,7 @@ GEM
rspec-instafail (0.1.8)
rspec-mocks (2.6.0)
ruby-progressbar (0.0.10)
+ thor (0.14.6)
PLATFORMS
ruby
@@ -45,5 +52,8 @@ DEPENDENCIES
faker
fakeweb
fuubar
+ growl (~> 1.0.3)
+ guard-rspec (~> 0.5.0)
rake
+ rb-fsevent (~> 0.4.2)
rspec
View
15 Guardfile
@@ -0,0 +1,15 @@
+# Run me with:
+#
+# $ bundle exec guard
+
+begin
+ require 'rb-inotify'
+ require 'libnotify'
+rescue LoadError
+end
+
+guard 'rspec', :all_on_start => false, :all_after_pass => false do
+ watch(%r{^spec/.+_spec\.rb})
+ watch(%r{^lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch(%r{^spec/.+_spec\.rb})
+end
View
5 spec/spec_helper.rb
@@ -19,6 +19,11 @@
end
RSpec.configure do |config|
+ config.filter_run :focused => true
+ config.run_all_when_everything_filtered = true
+ config.alias_example_to :fit, :focused => true
+ config.color_enabled = true
+
config.after(:each) do
ActiveResource::FakeResource.clean
end

0 comments on commit b8cf774

Please sign in to comment.
Something went wrong with that request. Please try again.