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.52.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.51.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.50.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.49.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.48.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.47.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.46.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.45.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.44.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.43.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.42.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.41.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.40.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.39.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.38.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.37.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.36.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.35.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.34.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.33.0 lib/rspectacular/plugins/shoulda.rb