Skip to content

Commit

Permalink
Fixed task specs (set 'task_calendar_with_time = false' after default…
Browse files Browse the repository at this point in the history
… settings are loaded)
  • Loading branch information
ndbroadbent committed Nov 17, 2011
1 parent 07d11c1 commit 82cfb5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/spec_helper.rb
Expand Up @@ -19,6 +19,9 @@

TASK_STATUSES = %w(pending assigned completed).freeze

# Load default settings from config/settings.yml
load_default_settings if Setting.table_exists?

Setting.task_calendar_with_time = false

I18n.locale = 'en-US'
Expand Down Expand Up @@ -57,9 +60,6 @@
config.use_transactional_fixtures = true
end

# Load default settings from config/settings.yml
load_default_settings if Setting.table_exists?

ActionView::TestCase::TestController.class_eval do
def self.controller_name
controller_path.split("/").last
Expand Down

0 comments on commit 82cfb5a

Please sign in to comment.