From 41512eaa35b73de1f8c4c576b8a6fc5365cf5282 Mon Sep 17 00:00:00 2001 From: Antonio C Nalesso Moreira Date: Sat, 13 Jul 2013 02:49:07 +0100 Subject: [PATCH] removed pending tests, added rspec tags --- .../spec/rails_generators/rails_generators_spec.rb | 4 ++-- tests/test_app/spec/spec_helper.rb | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/test_app/spec/rails_generators/rails_generators_spec.rb b/tests/test_app/spec/rails_generators/rails_generators_spec.rb index 2b5ea93..79022e8 100644 --- a/tests/test_app/spec/rails_generators/rails_generators_spec.rb +++ b/tests/test_app/spec/rails_generators/rails_generators_spec.rb @@ -2,8 +2,8 @@ require 'spec_helper' require 'systemu' # FIXME this test might break the others if run before them -# -describe Impressionist do +# started fixing @nbit001 +describe Impressionist, :migration do fixtures :articles,:impressions,:posts it "should delete existing migration and generate the migration file" do pending diff --git a/tests/test_app/spec/spec_helper.rb b/tests/test_app/spec/spec_helper.rb index 3659572..111cd05 100644 --- a/tests/test_app/spec/spec_helper.rb +++ b/tests/test_app/spec/spec_helper.rb @@ -17,12 +17,24 @@ Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| } RSpec.configure do |config| + + # in order to pass tags(symbols) as true values + # you need to tell rspec to do so by + config.treat_symbols_as_metadata_keys_with_true_values = true + config.mock_with :rspec config.fixture_path = "#{::Rails.root}/spec/fixtures" config.use_transactional_fixtures = true + # excludes migration tag while running app base tests + config.filter_run_excluding :migration => true + + # self explanatory + # runs everything + config.run_all_when_everything_filtered = true + # make the rails logger usable in the tests as logger.xxx "..." def logger Rails.logger