Sha256: 47fce529e4587fbe93791a47056a73db4918c5040c836d7a44104327a1d0cc6e

Contents?: true

Size: 625 Bytes

Versions: 51

Compression:

Stored size: 625 Bytes

Contents

##############################################################################
#                             Shoulda Plugin
##############################################################################

begin
  require 'shoulda-matchers'
rescue LoadError
end

if defined? Shoulda
  if defined? RSpec::Rails
    module ShouldaRoutingMatchers
      def route(method, path)
        Shoulda::Matchers::ActionController::RouteMatcher.new(method, path, self)
      end
    end

    module RSpec
      module Rails
        module RoutingExampleGroup
          include ShouldaRoutingMatchers
        end
      end
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
rspectacular-0.70.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.69.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.68.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.67.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.66.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.65.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.64.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.63.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.62.1 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.62.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.61.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.60.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.59.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.58.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.57.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.56.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.55.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.54.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.53.1 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.53.0 lib/rspectacular/plugins/shoulda.rb