Permalink
Browse files

fix tests

  • Loading branch information...
1 parent 4aa5b53 commit 13a9bb04b5e748c99d5618560508b758be1267d8 @marten committed Mar 20, 2012
Showing with 3 additions and 44 deletions.
  1. +3 −3 spec/soundcheck/frameworks/rspec_spec.rb
  2. +0 −41 spec/soundcheck_spec.rb
@@ -33,12 +33,12 @@
it "should not use bundler when not needed" do
project.stub!(:root => fixture("ruby-bundler-rspec"))
cmd = framework.command("spec/without_spec_helper_spec.rb")
- cmd.should == "rspec spec/without_spec_helper_spec.rb"
+ cmd.should == "rspec --format=doc spec/without_spec_helper_spec.rb"
end
it "should show backtraces when requested" do
framework.options[:trace] = true
- framework.command("spec/a_spec.rb").should == "rspec -b spec/a_spec.rb"
+ framework.command("spec/a_spec.rb").should == "rspec -b --format=doc spec/a_spec.rb"
end
it "should only run fast specs when requested" do pending
@@ -59,7 +59,7 @@
it "should filter invalid non-spec args" do
cmd = framework.command("spec/a_spec.rb", "features/a.feature")
- cmd.should == "rspec spec/a_spec.rb"
+ cmd.should == "rspec --format=doc spec/a_spec.rb"
end
end
end
View
@@ -1,41 +0,0 @@
-require_relative 'spec_helper'
-require File.expand_path(File.dirname(__FILE__) + '/../lib/soundcheck')
-
-CURRENT_PWD = Dir.pwd
-
-def cmd_for(path = nil, options = {})
- Soundcheck.new(path, options).command_to_run
-end
-
-describe "Soundcheck" do
- context "for a ruby project" do
- context "using rspec" do
- before(:all) { Dir.chdir(FIXTURES_ROOT + '/ruby-rspec') }
-
- it "should not use bundler when no Gemfile exists" do
- cmd_for.should == "rspec spec"
- end
-
- context "using bundler" do
- before(:all) { Dir.chdir(FIXTURES_ROOT + '/ruby-bundler-rspec') }
-
- it "should return 'bundle exec rspec spec' when run with no arguments" do
- cmd_for.should == "bundle exec rspec spec"
- end
-
- it "should return 'bundle exec rspec spec/with_spec_helper_spec.rb'" do
- cmd_for('spec/with_spec_helper_spec.rb').should == "bundle exec rspec spec/with_spec_helper_spec.rb"
- end
-
- it "should return 'rspec spec/without_spec_helper_spec.rb'" do
- cmd_for('spec/without_spec_helper_spec.rb').should == "rspec spec/without_spec_helper_spec.rb"
- end
- end
- end
-
- context "using minitest"
- context "using test::unit"
- end
-
- context "for a python project"
-end

0 comments on commit 13a9bb0

Please sign in to comment.