Sha256: 0323928550a7d83068c8b242965cecd85c1b63679fe1ced190a7bd5499ec2456
Contents?: true
Size: 767 Bytes
Versions: 3
Compression:
Stored size: 767 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
3 entries across 3 versions & 1 rubygems