Sha256: d5b33a82aa8b1ec18b3e85a1f41090961c9a70d194db0bbec32e01e0d487ca7d

Contents?: true

Size: 456 Bytes

Versions: 5

Compression:

Stored size: 456 Bytes

Contents

require 'spec_helper'

describe Virtus::Options, '.accepted_options' do
  subject { object.accepted_options }

  specify { object.should respond_to(:accepted_options) }

  let(:object) do
    Class.new do
      extend Virtus::DescendantsTracker
      extend Virtus::Options
    end
  end

  let(:options) { [ :width, :height ] }

  before { object.accept_options(*options) }

  it { should be_instance_of(Array) }
  it { should include(*options)     }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
virtus-0.0.10 spec/unit/virtus/options/accepted_options_spec.rb
virtus-0.0.9 spec/unit/virtus/options/accepted_options_spec.rb
virtus-0.0.8 spec/unit/virtus/options/accepted_options_spec.rb
virtus-0.0.7 spec/unit/virtus/options/accepted_options_spec.rb
virtus-0.0.6 spec/unit/virtus/options/accepted_options_spec.rb