Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed unused gem dependencies

  • Loading branch information...
commit 2b16273d610751c5d5ba9262b1c50a78b3e6811e 1 parent c0c998d
@drnic drnic authored
View
1  config/environment.rb
@@ -10,7 +10,6 @@
Rails::Initializer.run do |config|
config.gem 'haml', :version => '>= 2.0.0'
config.gem 'formtastic', :version => '>= 0.9.7'
- config.gem 'will_paginate', :version => '>= 2.3.12'
config.gem 'inherited_resources', :version => '1.0.3'
config.gem 'nokogiri'
View
3  config/environments/cucumber.rb
@@ -26,7 +26,4 @@
config.gem 'capybara', :lib => false, :version => '>= 0.3.0'
config.gem 'rspec', :lib => false, :version => '= 1.3.0'
config.gem 'rspec-rails', :lib => 'spec/rails', :version => '= 1.3.2'
-config.gem 'email_spec', :version => '>= 0.4.0'
-config.gem 'machinist', :version => '>= 1.0.6'
config.gem 'fakeweb', :version => '>= 1.2.8'
-config.gem 'faker', :version => '>= 0.3.1'
View
3  config/environments/test.rb
@@ -29,7 +29,4 @@
config.gem 'capybara', :lib => false, :version => '>= 0.3.0'
config.gem 'rspec', :lib => false, :version => '>= 2.0.0.a7'
config.gem 'rspec-rails', :lib => 'spec/rails', :version => '>= 1.3.2'
-config.gem 'email_spec', :version => '>= 0.4.0'
-config.gem 'machinist', :version => '>= 1.0.6'
config.gem 'fakeweb', :version => '>= 1.2.8'
-config.gem 'faker', :version => '>= 0.3.1'
View
143 features/step_definitions/email_steps.rb
@@ -1,143 +0,0 @@
-# Commonly used email steps
-#
-# To add your own steps make a custom_email_steps.rb
-# The provided methods are:
-#
-# last_email_address
-# reset_mailer
-# open_last_email
-# visit_in_email
-# unread_emails_for
-# mailbox_for
-# current_email
-# open_email
-# read_emails_for
-# find_email
-#
-# General form for email scenarios are:
-# - clear the email queue (done automatically by email_spec)
-# - execute steps that sends an email
-# - check the user received an/no/[0-9] emails
-# - open the email
-# - inspect the email contents
-# - interact with the email (e.g. click links)
-#
-# The Cucumber steps below are setup in this order.
-
-module EmailHelpers
- def current_email_address
- # Replace with your a way to find your current email. e.g @current_user.email
- # last_email_address will return the last email address used by email spec to find an email.
- # Note that last_email_address will be reset after each Scenario.
- last_email_address || "example@example.com"
- end
-end
-
-World(EmailHelpers)
-
-#
-# Reset the e-mail queue within a scenario.
-# This is done automatically before each scenario.
-#
-
-Given /^(?:a clear email queue|no emails have been sent)$/ do
- reset_mailer
-end
-
-#
-# Check how many emails have been sent/received
-#
-
-Then /^(?:I|they|"([^"]*?)") should receive (an|no|\d+) emails?$/ do |address, amount|
- unread_emails_for(address).size.should == parse_email_count(amount)
-end
-
-Then /^(?:I|they|"([^"]*?)") should have (an|no|\d+) emails?$/ do |address, amount|
- mailbox_for(address).size.should == parse_email_count(amount)
-end
-
-# DEPRECATED
-# The following methods are left in for backwards compatibility and
-# should be removed by version 0.4.0
-Then /^(?:I|they|"([^"]*?)") should not receive an email$/ do |address|
- email_spec_deprecate "The step 'I/they/[email] should not receive an email' is no longer supported.
- Please use 'I/they/[email] should receive no emails' instead."
- unread_emails_for(address).size.should == 0
-end
-
-#
-# Accessing emails
-#
-
-# Opens the most recently received email
-When /^(?:I|they|"([^"]*?)") opens? the email$/ do |address|
- open_email(address)
-end
-
-When /^(?:I|they|"([^"]*?)") opens? the email with subject "([^"]*?)"$/ do |address, subject|
- open_email(address, :with_subject => subject)
-end
-
-When /^(?:I|they|"([^"]*?)") opens? the email with text "([^"]*?)"$/ do |address, text|
- open_email(address, :with_text => text)
-end
-
-#
-# Inspect the Email Contents
-#
-
-Then /^(?:I|they) should see "([^"]*?)" in the email subject$/ do |text|
- current_email.should have_subject(text)
-end
-
-Then /^(?:I|they) should see \/([^"]*?)\/ in the email subject$/ do |text|
- current_email.should have_subject(Regexp.new(text))
-end
-
-Then /^(?:I|they) should see "([^"]*?)" in the email body$/ do |text|
- current_email.body.should include(text)
-end
-
-Then /^(?:I|they) should see \/([^"]*?)\/ in the email body$/ do |text|
- current_email.body.should =~ Regexp.new(text)
-end
-
-Then /^(?:I|they) should see the email delivered from "([^"]*?)"$/ do |text|
- current_email.should be_delivered_from(text)
-end
-
-Then /^(?:I|they) should see "([^\"]*)" in the email "([^"]*?)" header$/ do |text, name|
- current_email.should have_header(name, text)
-end
-
-Then /^(?:I|they) should see \/([^\"]*)\/ in the email "([^"]*?)" header$/ do |text, name|
- current_email.should have_header(name, Regexp.new(text))
-end
-
-
-# DEPRECATED
-# The following methods are left in for backwards compatibility and
-# should be removed by version 0.4.0.
-Then /^(?:I|they) should see "([^"]*?)" in the subject$/ do |text|
- email_spec_deprecate "The step 'I/they should see [text] in the subject' is no longer supported.
- Please use 'I/they should see [text] in the email subject' instead."
- current_email.should have_subject(Regexp.new(text))
-end
-Then /^(?:I|they) should see "([^"]*?)" in the email$/ do |text|
- email_spec_deprecate "The step 'I/they should see [text] in the email' is no longer supported.
- Please use 'I/they should see [text] in the email body' instead."
- current_email.body.should =~ Regexp.new(text)
-end
-
-#
-# Interact with Email Contents
-#
-
-When /^(?:I|they) follow "([^"]*?)" in the email$/ do |link|
- visit_in_email(link)
-end
-
-When /^(?:I|they) click the first link in the email$/ do
- click_first_link_in_email
-end
-
View
3  features/support/env_extn.rb
@@ -1,6 +1,3 @@
-require "email_spec/cucumber"
-require File.dirname(__FILE__) + "/../../spec/blueprints"
-
Before do
FakeWeb.allow_net_connect = false
end
Please sign in to comment.
Something went wrong with that request. Please try again.