Sha256: 092c5bafea2932b24d2ed4d5c425124bb31714422be7be954c1ad0846a0dbd80

Contents?: true

Size: 494 Bytes

Versions: 2

Compression:

Stored size: 494 Bytes

Contents

require "integration/test_helper"

describe "Deleting a Tables" do
  table_name = TableNameHelper.name

  after do
    TableNameHelper.clean
  end

  let :table do
    Azure::Tables::Table.new(table_name)
  end

  it "should return false if the table cannot be deleted" do
    Azure::Tables.delete(table).must_equal false
  end

  it "should return true if the table were deleted" do
    table = Azure::Tables::Table.create(table_name)
    Azure::Tables.delete(table).must_equal true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure-0.1.1 test/integration/tables/deleting_table_test.rb
azure-0.1.0 test/integration/tables/deleting_table_test.rb