Sha256: 4383f46a538463f7f83c5376767218bdc3217894884e82b53dd39f09d494f2d4

Contents?: true

Size: 472 Bytes

Versions: 6

Compression:

Stored size: 472 Bytes

Contents

require 'spec_helper'

describe Fierce::DelegateGenerator::Controller do
  let(:delegate) { 
    Fierce::DelegateGenerator::Controller.new(controller).generate
  }

  it 'has readers for instance variables in the controller' do
    delegate.available.should == 'im for you!'
  end

  it 'excludes protected instance variable' do
    delegate.should_not respond_to(:protected_ivar)
  end

  it 'excludes @template' do
    delegate.should_not respond_to(:template)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fierce-0.2.0 spec/delegate_generator/controller_spec.rb
fierce-0.1.4 spec/delegate_generator/controller_spec.rb
fierce-0.1.3 spec/delegate_generator/controller_spec.rb
fierce-0.1.2 spec/delegate_generator/controller_spec.rb
fierce-0.1.1 spec/delegate_generator/controller_spec.rb
fierce-0.1.0 spec/delegate_generator/controller_spec.rb