spec/eotb_spec.rb in eotb-0.3.1 vs spec/eotb_spec.rb in eotb-0.4.0

- old
+ new

@@ -2,11 +2,11 @@ describe Eotb do before(:each) do @response = "200" - Eotb.configure("4c333965b3dfae07bd00000d") + Eotb.configure("0"*24) end it "should register two arguments" do Eotb.register_event("actor", "action").code.should == @response end @@ -22,17 +22,13 @@ it "should register objects" do Eotb.register_event(Object.new, :action, {:username => Object.new}).code.should == @response end it "should register hashes" do - Eotb.register_event({:type => "User"}, :action, {:username => "John"}).code.should == @response + Eotb.register_event({:type => "User"}, :action, {:username => {:first_name => "John"}}).code.should == @response end it "should register arrays" do Eotb.register_event([2,3,4], :action, {:username => ["John", "Josh"]}).code.should == @response - end - - it "should register subject in json" do - Eotb.register_event(:actor, :action, "{\"username\":\"John\"}").code.should == @response end end \ No newline at end of file