Sha256: 0dd89f50b5560f3263944b75fab0fff2595aecd5e5d026ef22b17265d1157b1c

Contents?: true

Size: 769 Bytes

Versions: 18

Compression:

Stored size: 769 Bytes

Contents

require File.expand_path("#{File.dirname(__FILE__)}/functional_spec_helper")

describe "ScrewUnit" do
  attr_reader :stdout, :request
  before do
    @stdout = StringIO.new
    ScrewUnit::Client.const_set(:STDOUT, stdout)
    @request = "http request"
  end

  after do
    ScrewUnit::Client.__send__(:remove_const, :STDOUT)
  end

  it "runs a full passing Suite" do
    ScrewUnit::Client.run(:spec_url => "#{root_url}/specs/foo/passing_spec")
    stdout.string.strip.should == "SUCCESS"
  end

  it "runs a full failing Suite" do
    ScrewUnit::Client.run(:spec_url => "#{root_url}/specs/foo/failing_spec")
    stdout.string.strip.should include("FAILURE")
    stdout.string.strip.should include("A failing spec in foo fails: expected true to equal false")
  end
end

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
pivotal-screw-unit-0.4.0 spec/functional/functional_spec.rb
pivotal-screw-unit-0.4.1 spec/functional/functional_spec.rb
pivotal-screw-unit-0.4.2 spec/functional/functional_spec.rb
pivotal-screw-unit-0.4.3 spec/functional/functional_spec.rb
pivotal-screw-unit-0.5.0 spec/functional/functional_spec.rb
pivotal-screw-unit-0.5.1 spec/functional/functional_spec.rb
pivotal-screw-unit-0.5.2 spec/functional/functional_spec.rb
pivotal-screw-unit-0.5.3 spec/functional/functional_spec.rb
pivotal-screw-unit-server-0.5.3 spec/functional/functional_spec.rb
pivotal-screw-unit-server-0.5.4 spec/functional/functional_spec.rb
pivotal-screw-unit-server-0.5.5 spec/functional/functional_spec.rb
pivotal-screw-unit-server-0.5.6 spec/functional/functional_spec.rb
pivotal-screw-unit-server-0.5.7 spec/functional/functional_spec.rb
pivotal-screw-unit-server-0.5.8 spec/functional/functional_spec.rb
pivotal-screw-unit-server-0.5.9 spec/functional/functional_spec.rb
screw-unit-0.5.1 spec/functional/functional_spec.rb
screw-unit-0.5.2 spec/functional/functional_spec.rb
screw-unit-server-0.5.3 spec/functional/functional_spec.rb