Skip to content

Commit 84af0d0

Browse files
authored
Switch test files to use Mobility (#56)
The project switched from Globalize in refinery/refinerycms#3360
1 parent 0d636dc commit 84af0d0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

spec/features/refinery/admin/wymeditor_feature_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
allow(Refinery::I18n).to receive(:frontend_locales).and_return [:en, :ru]
99

1010
# Create a page in both locales
11-
about_page = Globalize.with_locale(:en) do
11+
about_page = Mobility.with_locale(:en) do
1212
Refinery::Page.create :title => 'About'
1313
end
1414

15-
Globalize.with_locale(:ru) do
15+
Mobility.with_locale(:ru) do
1616
about_page.title = 'About Ru'
1717
about_page.save
1818
end

spec/spec_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727

2828
Capybara.configure do |config|
2929
config.default_max_wait_time = ENV['CAPYBARA_MAX_WAIT_TIME'] || 10 # seconds
30-
config.default_driver = :selenium
30+
config.default_driver = :selenium
31+
config.server = :webrick
3132
end
3233

3334
# Requires supporting files with custom matchers and macros, etc,

0 commit comments

Comments
 (0)