Sha256: 12d5cbd85596866c5da96cc815fc48c76bb7e6664943c4a55446ecc300f2bc5a

Contents?: true

Size: 576 Bytes

Versions: 32

Compression:

Stored size: 576 Bytes

Contents

require "spec_helper"
require "lol"

include Lol

describe MiniSeries do
  it "inherits from Lol::Model" do
    expect(MiniSeries.ancestors[1]).to eq(Model)
  end

  context "initialization" do
    it_behaves_like 'Lol model' do
      let(:valid_attributes) { { target: 3 } }
    end

    %w(target wins losses time_left_to_play_millis progress).each do |attribute|
      describe "#{attribute} attribute" do
        it_behaves_like 'plain attribute' do
          let(:attribute) { attribute }
          let(:attribute_value) { 'asd' }
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
ruby-lol-0.12.2 spec/lol/mini_series_spec.rb
ruby-lol-0.12.1 spec/lol/mini_series_spec.rb
ruby-lol-0.12.0 spec/lol/mini_series_spec.rb
ruby-lol-0.11.6 spec/lol/mini_series_spec.rb
ruby-lol-0.11.5 spec/lol/mini_series_spec.rb
ruby-lol-0.11.4 spec/lol/mini_series_spec.rb
ruby-lol-0.11.3 spec/lol/mini_series_spec.rb
ruby-lol-0.11.2 spec/lol/mini_series_spec.rb
ruby-lol-0.11.1 spec/lol/mini_series_spec.rb
ruby-lol-0.11.0 spec/lol/mini_series_spec.rb
ruby-lol-0.10.0 spec/lol/mini_series_spec.rb
ruby-lol-0.9.19.1 spec/lol/mini_series_spec.rb
ruby-lol-0.9.19 spec/lol/mini_series_spec.rb
ruby-lol-0.9.18 spec/lol/mini_series_spec.rb
ruby-lol-0.9.17 spec/lol/mini_series_spec.rb
ruby-lol-0.9.16 spec/lol/mini_series_spec.rb
ruby-lol-0.9.15 spec/lol/mini_series_spec.rb
ruby-lol-0.9.14 spec/lol/mini_series_spec.rb
ruby-lol-0.9.13 spec/lol/mini_series_spec.rb
ruby-lol-0.9.12 spec/lol/mini_series_spec.rb