Sha256: 2a190e2580f0d84c381be41b4e8b9f7e3366dc6b0b6e8e449ba57893098a98ea

Contents?: true

Size: 590 Bytes

Versions: 2

Compression:

Stored size: 590 Bytes

Contents

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

module ESP::Integration
  class RoleTest < ESP::Integration::TestCase
    context ESP::Role do
      context 'live calls' do
        setup do
          @role = ESP::Role.last
          fail "Live DB does not have any roles.  Add a role and run tests again." if @role.blank?
        end

        context '#CRUD' do
          should 'be able to read' do
            assert_not_nil @role

            role = ESP::Role.find(@role.id)

            assert_not_nil role
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
esp_sdk-2.8.0 test/esp/integration/role_integration_test.rb
esp_sdk-2.7.0 test/esp/integration/role_integration_test.rb