Sha256: a90ad198ced34d8383c143222168a766e4618c42e68f36ca86ab19c758830d98

Contents?: true

Size: 522 Bytes

Versions: 1

Compression:

Stored size: 522 Bytes

Contents

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

describe Eotb do
  
  before(:each) do
    @eotb = Eotb.new('0')
    @data = [:actor, :action, {:username => 'Vuvuzela'}]
  end
  
  it "should check connection status" do
    @eotb.http.get('/').code.should eql('200')
  end
  
  it "should have data in json" do
    @eotb.to_json(@data).should eql(JSON.generate(@data))
  end
  
  it "should post data in json" do
    @eotb.register_event(@data[0], @data[1], @data[2]).code.should eql('200')
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eotb-0.1.0 spec/eotb_spec.rb