Skip to content

Commit

Permalink
pending specs + new guardfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ajb committed Sep 26, 2013
1 parent 27522e9 commit 583fb62
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 17 deletions.
23 changes: 7 additions & 16 deletions Guardfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,15 @@
# More info at https://github.com/guard/guard#readme

group :all_specs do
guard :rspec, all_on_start: false, all_after_pass: false, spec_paths: ['spec/features'] do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
guard :rspec do

# Rails example
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
watch('config/routes.rb') { "spec/routing" }
watch('app/controllers/application_controller.rb') { "spec/controllers" }
watch('spec/spec_helper.rb') { "spec" }

# Capybara features specs
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
watch(%r{^app/models/formbuilder/(.+)\.rb$}) { |m| "app/models/formbuilder/#{m[1]}_spec.rb" }
watch(%r{^lib/formbuilder/(.+)\.rb$}) { |m| "spec/lib/formbuilder/#{m[1]}_spec.rb" }

# Turnip features and steps
watch(%r{^spec/acceptance/(.+)\.feature$})
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
end
end
1 change: 0 additions & 1 deletion spec/features/submitting_an_entry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,4 @@
current_path.should == render_entry_path(form, entry)
end


end
7 changes: 7 additions & 0 deletions spec/lib/formbuilder/entry_renderer_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'spec_helper'

describe Formbuilder::EntryRenderer do

pending

end
7 changes: 7 additions & 0 deletions spec/lib/formbuilder/entry_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'spec_helper'

describe Formbuilder::Entry do

pending

end
7 changes: 7 additions & 0 deletions spec/lib/formbuilder/entry_table_renderer_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'spec_helper'

describe Formbuilder::EntryTableRenderer do

pending

end
7 changes: 7 additions & 0 deletions spec/lib/formbuilder/entry_validator_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'spec_helper'

describe Formbuilder::EntryValidator do

pending

end
7 changes: 7 additions & 0 deletions spec/lib/formbuilder/form_renderer_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'spec_helper'

describe Formbuilder::FormRenderer do

pending

end
7 changes: 7 additions & 0 deletions spec/models/formbuilder/entry_attachment_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'spec_helper'

describe Formbuilder::EntryAttachment do

pending

end
7 changes: 7 additions & 0 deletions spec/models/formbuilder/form_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'spec_helper'

describe Formbuilder::Form do

pending

end
7 changes: 7 additions & 0 deletions spec/models/formbuilder/response_field_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'spec_helper'

describe Formbuilder::ResponseField do

pending

end

0 comments on commit 583fb62

Please sign in to comment.