Created
February 21, 2014 02:56
-
-
Save ciwolsey/9127969 to your computer and use it in GitHub Desktop.
Test1
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
source 'https://rubygems.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.0.2' | |
# Use sqlite3 as the database for Active Record | |
gem 'sqlite3' | |
gem 'launchy' | |
# Use SCSS for stylesheets | |
gem 'sass-rails', '~> 4.0.0' | |
group :development, :test do | |
gem 'rspec-rails', '2.13.1' | |
end | |
group :test do | |
gem 'selenium-webdriver', '2.35.1' | |
gem 'capybara', '2.1.0' | |
end | |
# Use Uglifier as compressor for JavaScript assets | |
gem 'uglifier', '>= 1.3.0' | |
# Use CoffeeScript for .js.coffee assets and views | |
gem 'coffee-rails', '~> 4.0.0' | |
# See https://github.com/sstephenson/execjs#readme for more supported runtimes | |
# gem 'therubyracer', platforms: :ruby | |
# Use jquery as the JavaScript library | |
gem 'jquery-rails' | |
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks | |
gem 'turbolinks' | |
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder | |
gem 'jbuilder', '~> 1.2' | |
group :doc do | |
# bundle exec rake doc:rails generates the API under doc/api. | |
gem 'sdoc', require: false | |
end | |
# Use ActiveModel has_secure_password | |
# gem 'bcrypt-ruby', '~> 3.1.2' | |
# Use unicorn as the app server | |
# gem 'unicorn' | |
# Use Capistrano for deployment | |
# gem 'capistrano', group: :development | |
# Use debugger | |
# gem 'debugger', group: [:development, :test] | |
group :production do | |
gem 'pg', '0.15.1' | |
gem 'rails_12factor', '0.0.2' | |
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
require 'spec_helper' | |
describe "Static pages" do | |
describe "Home page" do | |
it "should have the content 'Sample App'" do | |
visit '/static_pages/home' | |
expect(page).to have_content('Sample App') | |
end | |
it "should have the title 'Home'" do | |
visit '/static_pages/home' | |
expect(page).to have_title("Ruby on Rails Tutorial Sample App | Home") | |
end | |
end | |
describe "Help page" do | |
it "should have the content 'Help'" do | |
visit '/static_pages/help' | |
expect(page).to have_content('Help') | |
end | |
it "should have the title 'Help'" do | |
visit '/static_pages/help' | |
expect(page).to have_title("Ruby on Rails Tutorial Sample App | Help") | |
end | |
end | |
describe "About page" do | |
it "should have the content 'About Us'" do | |
visit '/static_pages/about' | |
expect(page).to have_content('About Us') | |
end | |
it "should have the title 'About Us'" do | |
visit '/static_pages/about' | |
expect(page).to have_title('Ruby on Rails Tutorial Sample App | About Us') | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment