Skip to content

Commit

Permalink
Merge 3000cdb into 54294a3
Browse files Browse the repository at this point in the history
  • Loading branch information
simi committed Dec 7, 2014
2 parents 54294a3 + 3000cdb commit b1ce832
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion pages/spec/features/refinery/admin/pages_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def expect_window_without_content(content, window: windows.last)
module Refinery
module Admin
describe "Pages", :type => :feature do
before { ::I18n.default_locale = Globalize.locale = :en }
refinery_login_with :refinery_user

context "when no pages" do
Expand Down
8 changes: 6 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

Rails.backtrace_cleaner.remove_silencers!

I18n.locale = :en

RSpec.configure do |config|
config.mock_with :rspec
config.filter_run :focus => true
Expand All @@ -35,6 +33,12 @@
example.call
Capybara.javascript_driver = :poltergeist
end

config.around(:each) do |example|
::I18n.default_locale = Globalize.locale = :en
example.run
::I18n.default_locale = Globalize.locale = :en
end
end

# Requires supporting files with custom matchers and macros, etc,
Expand Down

0 comments on commit b1ce832

Please sign in to comment.