Sha256: e295050579be1c4f5ef2dbf4d56e52704b54746168873f888e502d3ed2d18055

Contents?: true

Size: 677 Bytes

Versions: 1

Compression:

Stored size: 677 Bytes

Contents

require 'spec_helper'

describe EldarScrolls::Scrolls do
  subject{ EldarScrolls::Scrolls }
  let(:scroll){ EldarScrolls::Scroll.generate("scroll_test", "# Testing", :name => "Test Scroll", :category => "test", :description => "Just a test.")}

  before(:all) do
    EldarScrolls::Scrolls.add(scroll)
  end

  it '.list_classes should include scroll classes' do
    subject.list_classes.should be_include(scroll)
  end

  it '.list should include scroll keys' do
    subject.list.should be_include('scroll_test')
  end

  describe '.for' do
    it 'should find for a given category' do
      EldarScrolls::Scrolls.for('test').should be_include('scroll_test')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eldarscrolls-0.7.0 spec/eldarscrolls/scrolls_spec.rb