Sha256: e8db217bf00ba81b755e39133153b31e52dc4ccae74c490331baaf023c6619c8

Contents?: true

Size: 431 Bytes

Versions: 27

Compression:

Stored size: 431 Bytes

Contents

module RSpec::RubyContent
  module Helpers
    def check_matchings matchings
      matchings.each do |matching|
        self.should match /#{Regexp.escape(matching)}/
      end
    end
    alias_method :matchings, :check_matchings 


    def check_methods methods, type=nil
      methods.each do |method_name|
        self.should have_method(method_name, type)
      end
    end
    alias_method :methods, :check_methods
  end
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
code-spec-0.4.0 lib/code_spec/content_helpers.rb
code-spec-0.3.0 lib/code_spec/content_helpers.rb
code-spec-0.2.11 lib/code_spec/content_helpers.rb
code-spec-0.2.9 lib/code_spec/content_helpers.rb
code-spec-0.2.8 lib/code_spec/content_helpers.rb
code-spec-0.2.7 lib/code_spec/content_helpers.rb
code-spec-0.2.6 lib/code_spec/content_helpers.rb
code-spec-0.2.5 lib/code_spec/content_helpers.rb
code-spec-0.2.4 lib/code_spec/content_helpers.rb
code-spec-0.2.3 lib/code_spec/content_helpers.rb
code-spec-0.2.2 lib/code_spec/content_helpers.rb
code-spec-0.2.1 lib/code_spec/content_helpers.rb
code-spec-0.2.0 lib/code_spec/content_helpers.rb
code-spec-0.1.3 lib/code_spec/content_helpers.rb
code-spec-0.1.2 lib/code_spec/content_helpers.rb
generator-spec-0.5.0 lib/generator_spec/matchers/helpers/content.rb
generator-spec-0.4.8 lib/generator_spec/matchers/helpers/content.rb
generator-spec-0.4.7 lib/generator_spec/matchers/helpers/content.rb
generator-spec-0.4.5 lib/generator_spec/matchers/helpers/content.rb
generator-spec-0.4.4 lib/generator_spec/matchers/helpers/content.rb