Sha256: 6bf1bd8a9c797df85e479f73e0095eabd57fd353b18ff91668922d15eb5cf357

Contents?: true

Size: 520 Bytes

Versions: 1

Compression:

Stored size: 520 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Eotb do
  
  context "register_event method" do
    
    it "should return json" do
      subject = { :user_id => 10, :user_name => "Noname" }
      Eotb.new.register_event(:current_user, :bought_membership, subject).should eql JSON.generate([:current_user, :bought_membership, subject])
    end
    
  end
  
  context "connection with app" do
    
    it "should set connection"
    
    it "should send json by POST to app"
    
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eotb-0.0.2 spec/eotb_spec.rb