Sha256: 07256f3bae012ba56ef102767e9c8c396fc60853ede2566eb88049af9ceda6e5
Contents?: true
Size: 623 Bytes
Versions: 7
Compression:
Stored size: 623 Bytes
Contents
require 'pione/test-helper' TestHelper.scope do |this| this::DIR = Location[File.dirname(__FILE__)] + "data" this::D1 = this::DIR + "D1.md" describe Pione::LiterateAction::Document do it "should get action names" do doc = LiterateAction::Document.load(this::D1) doc.action_names.sort.should == ["Name1", "Name2"] end it "should get action handler by name" do doc = LiterateAction::Document.load(this::D1) doc.find("Name1").should.kind_of LiterateAction::Handler doc.find("Name2").should.kind_of LiterateAction::Handler doc.find("Name3").should.nil end end end
Version data entries
7 entries across 7 versions & 1 rubygems