forked from railsinstaller/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
92 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# -*- coding: utf-8 -*- | ||
require 'spec_helper' | ||
|
||
describe 'Index page', type: :feature do | ||
context 'with English locale' do | ||
before do | ||
visit '/en' | ||
end | ||
|
||
it 'should have an English tagline' do | ||
expect(page).to have_content 'Get to work' | ||
end | ||
end | ||
|
||
context 'with Czech locale' do | ||
before do | ||
visit '/cs' | ||
end | ||
|
||
it 'should have a Czech tagline' do | ||
expect(page).to have_content 'Dej se do práce' | ||
end | ||
end | ||
|
||
context 'with French locale' do | ||
before do | ||
visit '/fr-FR' | ||
end | ||
|
||
it 'should have a French tagline' do | ||
expect(page).to have_content 'Au travail' | ||
end | ||
end | ||
|
||
context 'with Brazilian Portugese locale' do | ||
before do | ||
visit '/pt-BR' | ||
end | ||
|
||
it 'should have a Brazilian Portugese tagline' do | ||
expect(page).to have_content 'Ao trabalho' | ||
end | ||
end | ||
|
||
context 'with Russian locale' do | ||
before do | ||
visit '/ru-RU' | ||
end | ||
|
||
it 'should have a Russian tagline' do | ||
expect(page).to have_content 'За работу' | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require 'middleman' | ||
require 'rspec' | ||
require 'capybara/rspec' | ||
|
||
Capybara.app = Middleman::Application.server.inst do | ||
set :root, File.expand_path(File.join(File.dirname(__FILE__), '..')) | ||
set :environment, :development | ||
set :show_exceptions, false | ||
end |