Sha256: c8fd0921e08afc1b6dadc7b67c38584e283c9bf26990e8ac70512f82bec2d565

Contents?: true

Size: 421 Bytes

Versions: 14

Compression:

Stored size: 421 Bytes

Contents

require 'spec_helper'

module Artwork
  describe Controller do
    let(:application_controller) { Class.new }

    it 'adds an around_filter and declares view helpers when included' do
      expect(application_controller).to receive(:around_filter).with(:initialize_artwork_env)
      expect(application_controller).to receive(:helper).with(View)

      application_controller.send :include, Controller
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
artwork-1.0.0 spec/artwork/controller_spec.rb
artwork-0.7.3 spec/artwork/controller_spec.rb
artwork-0.7.2 spec/artwork/controller_spec.rb
artwork-0.7.1 spec/artwork/controller_spec.rb
artwork-0.7.0 spec/artwork/controller_spec.rb
artwork-0.6.1 spec/artwork/controller_spec.rb
artwork-0.6.0 spec/artwork/controller_spec.rb
artwork-0.5.0 spec/artwork/controller_spec.rb
artwork-0.4.2 spec/artwork/controller_spec.rb
artwork-0.4.1 spec/artwork/controller_spec.rb
artwork-0.4.0 spec/artwork/controller_spec.rb
artwork-0.3.2 spec/artwork/controller_spec.rb
artwork-0.3.1 spec/artwork/controller_spec.rb
artwork-0.3.0 spec/artwork/controller_spec.rb