Sha256: 2c0896814977ad892e03568cc8328be545e1972fe02076d208df40d11bcec130
Contents?: true
Size: 577 Bytes
Versions: 2
Compression:
Stored size: 577 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "Context" do before(:each) do @url = "http://creativeallies.com" end # # Initialization # context "initialization" do it "should raise an error if a URL is not set" do lambda {Virility::Context.new}.should raise_error end it "should set the url" do Virility::Excitation.new(@url).url.should == @url end end # # Interface # context "interface" do it "should raise an error on poll" do lambda { Virility::Context.new(@url).poll }.should raise_error end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
virility-0.0.6 | spec/context_spec.rb |
virility-0.0.5 | spec/context_spec.rb |