removed pending tests, added rspec tags

This commit is contained in:
Antonio C Nalesso Moreira 2013-07-13 02:49:07 +01:00
parent a107acc6df
commit 41512eaa35
2 changed files with 14 additions and 2 deletions

View File

@ -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

View File

@ -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