Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated hash syntax to ruby 1.9 symbol syntax #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spec/controllers/subscriptions_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.describe SubscriptionsController, :type => :controller do
RSpec.describe SubscriptionsController, type: :controller do

context "GET new" do

Expand Down
2 changes: 1 addition & 1 deletion spec/helpers/application_helper_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.describe ApplicationHelper, :type => :helper do
RSpec.describe ApplicationHelper, type: :helper do

context "page_title attribute" do

Expand Down
2 changes: 1 addition & 1 deletion spec/jobs/headline_scraper_job_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.describe HeadlineScraperJob, :type => :job do
RSpec.describe HeadlineScraperJob, type: :job do

it "emails headlines scraped from given URL" do

Expand Down
2 changes: 1 addition & 1 deletion spec/mailers/news_mailer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "rails_helper"

RSpec.describe NewsMailer, :type => :mailer do
RSpec.describe NewsMailer, type: :mailer do

describe ".send_headlines(headlines:, to:)" do

Expand Down
2 changes: 1 addition & 1 deletion spec/mailers/subscription_mailer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "rails_helper"

RSpec.describe SubscriptionMailer, :type => :mailer do
RSpec.describe SubscriptionMailer, type: :mailer do

describe ".send_confirmation_request!(subscription)" do

Expand Down
2 changes: 1 addition & 1 deletion spec/models/subscription_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.describe Subscription, :type => :model do
RSpec.describe Subscription, type: :model do

context "db" do
context "indexes" do
Expand Down
2 changes: 1 addition & 1 deletion spec/models/user_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.describe User, :type => :model do
RSpec.describe User, type: :model do

it { should validate_presence_of :email }
it { should validate_presence_of :password }
Expand Down
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
# You can disable this behaviour by removing the line below, and instead
# explicitly tag your specs with their type, e.g.:
#
# RSpec.describe UsersController, :type => :controller do
# RSpec.describe UsersController, type: :controller do
# # ...
# end
#
Expand Down
4 changes: 2 additions & 2 deletions spec/routing/subscriptions_routing_spec.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
require "rails_helper"

RSpec.describe "routes for Subscriptions", :type => :routing do
RSpec.describe "routes for Subscriptions", type: :routing do

context "confirm_subscription route" do

it "should use the confirmation token as the identifier" do

subscription = Subscription.new(confirmation_token: "im-a-token-98765")

expect(:get => confirm_subscription_path(subscription))
expect(get: confirm_subscription_path(subscription))
.to route_to(
controller: "subscriptions",
action: "confirm",
Expand Down
2 changes: 1 addition & 1 deletion spec/support/capybara.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Only if you're not using Puffing Billy, to use Chrome instead of Firefox,
# uncomment the following 3 lines:
# Capybara.register_driver :selenium do |app|
# Capybara::Selenium::Driver.new(app, :browser => :chrome)
# Capybara::Selenium::Driver.new(app, browser: :chrome)
# end

# 3. Start using Capybara. See feature specs in this project for examples.
Expand Down
2 changes: 1 addition & 1 deletion spec/tasks/subscription_tasks_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.describe "Subscription tasks", :type => :task do
RSpec.describe "Subscription tasks", type: :task do

context "subscription:confirmation_overdue:delete" do

Expand Down