Sha256: e4433d4bfd2eedd1412c29fd1c436d211bed867d946d9baa9452fe66c98b8698
Contents?: true
Size: 725 Bytes
Versions: 4
Compression:
Stored size: 725 Bytes
Contents
require File.expand_path("#{File.dirname(__FILE__)}/integration_spec_helper") describe "JsSpec" do attr_reader :stdout, :request before do @stdout = StringIO.new JsSpec::Client.const_set(:STDOUT, stdout) @request = "http request" end after do JsSpec::Client.__send__(:remove_const, :STDOUT) end it "runs a full passing Suite" do JsSpec::Client.run(:spec_url => "#{root_url}/specs/foo/passing_spec") stdout.string.strip.should == "SUCCESS" end it "runs a full failing Suite" do JsSpec::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") end end
Version data entries
4 entries across 4 versions & 1 rubygems