diff --git a/Rakefile b/Rakefile index 0486f0d11..ebd100833 100644 --- a/Rakefile +++ b/Rakefile @@ -3,7 +3,6 @@ require File.expand_path('../spec/environment', __FILE__) require 'rake/rdoctask' require 'rake/testtask' require 'spec/rake/spectask' -require 'cucumber/rake/task' desc "Build a gem file" task :build do @@ -11,9 +10,6 @@ task :build do end task :default => :spec -Cucumber::Rake::Task.new do |t| - t.cucumber_opts = "spec/features --format pretty" -end Spec::Rake::SpecTask.new(:rcov) do |t| t.spec_files = FileList['test/**/tc_*.rb', 'spec/**/*_spec.rb'] diff --git a/spec/features/making_a_new_message.feature b/spec/features/making_a_new_message.feature deleted file mode 100644 index d69f5ad6c..000000000 --- a/spec/features/making_a_new_message.feature +++ /dev/null @@ -1,14 +0,0 @@ -Feature: Making a new message - In order to to be able to send a message - Users should be able to - Create a message object - - Scenario: Making a basic plain text email from a string - Given a basic email in a string - When I parse the basic email - Then the 'from' field should be 'bob' - - | attribute | value | - | to | mikel | - | subject | Hello! | - | body | email message | diff --git a/spec/features/steps/env.rb b/spec/features/steps/env.rb deleted file mode 100644 index ae0366efd..000000000 --- a/spec/features/steps/env.rb +++ /dev/null @@ -1,6 +0,0 @@ -$:.unshift "#{File.dirname(__FILE__)}/../../../lib" -$:.unshift "#{File.dirname(__FILE__)}/../../../lib/mail" - -require 'mail' - -alias :doing :lambda \ No newline at end of file diff --git a/spec/features/steps/making_a_new_message_steps.rb b/spec/features/steps/making_a_new_message_steps.rb deleted file mode 100644 index 45d8722f4..000000000 --- a/spec/features/steps/making_a_new_message_steps.rb +++ /dev/null @@ -1,11 +0,0 @@ -Given /^a basic email in a string$/ do - @string = "To: mikel\nFrom: bob\nSubject: Hello!\n\nemail message\n" -end - -When /^I parse the basic email$/ do - @mail = Mail.new(@string) -end - -Then /^the '(.+)' field should be '(.+)'$/ do |attribute, value| - @mail.send(attribute).should == value -end