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.31.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.30.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.29.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.28.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.27.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.26.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.25.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.24.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.23.1 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.23.0 lib/rspectacular/plugins/shoulda.rb
rspectacular-0.22.2 lib/rspectacular/plugins/shoulda.rb