Parent

Spec::Matchers::Migration::HaveTableMatcher

Attributes

table_name[RW]
repository[RW]

Public Class Methods

new(table_name) click to toggle source
    # File lib/spec/matchers/migration_matchers.rb, line 25
25:         def initialize(table_name)
26:           @table_name = table_name
27:         end

Public Instance Methods

failure_message() click to toggle source
    # File lib/spec/matchers/migration_matchers.rb, line 33
33:         def failure_message
34:           %(expected #{repository} to have table '#{table_name}')
35:         end
matches?(repository) click to toggle source
    # File lib/spec/matchers/migration_matchers.rb, line 29
29:         def matches?(repository)
30:           repository.adapter.storage_exists?(table_name)
31:         end
negative_failure_message() click to toggle source
    # File lib/spec/matchers/migration_matchers.rb, line 37
37:         def negative_failure_message
38:           %(expected #{repository} to not have table '#{table_name}')
39:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.