Sha256: 8978614e0e760a94b5752db16c4bc32f5e4defb230fad0fe67215a9c585082fa
Contents?: true
Size: 421 Bytes
Versions: 1
Compression:
Stored size: 421 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' module Rubot::Adapters::Acme class Robot attr_reader :options def initialize @options = {} end end class Behavior; end end describe Rubot::DSL do include Rubot::DSL it "should create a robot" do robot :fred do adapter :acme end Rubot::DSL::Robots[:fred].should be_an_instance_of(Rubot::Adapters::Acme::Robot) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Peeja-rubot-0.5.0 | spec/rubot/dsl_spec.rb |