Sha256: e401b6f06f79811af3eb08bea45c569351368d2979062c8d793e2645fb30d841

Contents?: true

Size: 410 Bytes

Versions: 14

Compression:

Stored size: 410 Bytes

Contents

require "support"

class TestEvent < Omise::Test
  setup do
    @event = Omise::Event.retrieve("evnt_test_52cin5n9bb6lytxduh9")
  end

  def test_that_we_can_list_all_events
    events = Omise::Event.list

    assert_instance_of Omise::List, events
  end

  def test_that_we_can_retrieve_a_event
    assert_instance_of Omise::Event, @event
    assert_equal "evnt_test_52cin5n9bb6lytxduh9", @event.id
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
omise-0.11.0 test/omise/test_event.rb
omise-0.10.1 test/omise/test_event.rb
omise-0.10.0 test/omise/test_event.rb
omise-0.9.1 test/omise/test_event.rb
omise-0.9.0 test/omise/test_event.rb
omise-0.7.2 test/omise/test_event.rb
omise-0.8.0 test/omise/test_event.rb
omise-0.7.1 test/omise/test_event.rb
omise-0.7.0 test/omise/test_event.rb
omise-0.6.0 test/omise/test_event.rb
omise-0.5.1 test/omise/test_event.rb
omise-0.5.0 test/omise/test_event.rb
omise-0.4.0 test/omise/test_event.rb
omise-0.3.0 test/omise/test_event.rb