diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 0d8bbe09..43d1a579 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -5,9 +5,28 @@ require 'spec/autorun' require 'spec/rails' require File.join(RAILS_ROOT, 'spec', 'blueprints') +#require File.join(RAILS_ROOT, 'spec', 'matchers') # Uncomment the next line to use webrat's matchers require 'webrat/integrations/rspec-rails' +Spec::Matchers.define :have_features_to_import do + match do |project| + project.features_to_import? + end + + failure_message_for_should do + "expected the project to have features to import" + end + + failure_message_for_should_not do + "expected the project not to have any features to import" + end + + description do + "expected the project to have features to import" + end +end + def content_for(name) response.template.instance_variable_get("@content_for_#{name}") end