Sha256: f62a1d701e7677b7bfcb1376ac44e1411e5564871783872a64625ed458a94ec7
Contents?: true
Size: 1003 Bytes
Versions: 1
Compression:
Stored size: 1003 Bytes
Contents
require 'spec_helper' # This is a simple set of tests to make sure that # all of the scrolls conform to the base requirements. EldarScrolls::Scrolls.list_classes.each do |scroll| describe scroll do it("should have a name"){ scroll.name.should be_kind_of(String) } it("should have a description"){ scroll.description.should be_kind_of(String) } it("should have a template"){ scroll.template.should be_kind_of(String) } it("should be able to compile"){ scroll.new.compile.should be_kind_of(String) } it "should have a string or nil category" do if scroll.category scroll.category.should be_kind_of(String) end end it "should have a Config or nil config" do if scroll.config scroll.config.should be_kind_of(EldarScrolls::Config) end end it "should be in the list" do EldarScrolls::Scrolls.list_classes.should be_include(scroll) EldarScrolls::Scrolls.list.should be_include(scroll.key) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eldarscrolls-0.7.0 | spec/eldarscrolls/scrolls/sanity_spec.rb |