Sha256: e22a75056a86dbd1662aba3a58e9a3ba0361cc07dbf2fcb83f932cdfdf15614e

Contents?: true

Size: 430 Bytes

Versions: 4

Compression:

Stored size: 430 Bytes

Contents

require 'raisin/testing/rspec/unit_helper'

module Raisin
  module UnitTest
    if defined?(RSpec::Rails)
      include RSpec::Rails::RailsExampleGroup
      include RSpec::Rails::Matchers::RedirectTo
      include RSpec::Rails::Matchers::RenderTemplate
    end

    def self.append_features(base)
      base.class_eval do
        include Raisin::UnitHelper
        subject { controller }
      end

      super
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
raisin-0.0.5 lib/raisin/testing/rspec/unit_test.rb
raisin-0.0.4 lib/raisin/testing/rspec/unit_test.rb
raisin-0.0.2 lib/raisin/testing/rspec/unit_test.rb
raisin-0.0.1 lib/raisin/testing/rspec/unit_test.rb