Sha256: f7498cf5d5c63004e94cb73030b35751dd8cb278ca050447ac314634fa4b2c77
Contents?: true
Size: 868 Bytes
Versions: 3
Compression:
Stored size: 868 Bytes
Contents
#encoding: utf-8 $: << File.join(File.dirname(__FILE__), "/../lib") require 'spec' require 'interpreter/treetophelpers' require 'pp' require 'nudge' require 'erb' def fixture(name, data = binding) text = File.read(File.join(File.dirname(__FILE__), "/fixtures/#{name}.example")) ERB.new(text).result(data) end def load_grammar(name) Treetop.load(File.join(File.dirname(__FILE__), '..', 'lib', 'interpreter', 'grammars', "nudge_#{name}.treetop")) end shared_examples_for "every Nudge Instruction" do it "should respond to \#preconditions?" do @i1.should respond_to(:preconditions?) end it "should respond to \#setup" do @i1.should respond_to(:setup) end it "should respond to \#derive" do @i1.should respond_to(:derive) end it "should respond to \#celanup" do @i1.should respond_to(:cleanup) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nudge-0.1.2 | spec/spec_helper.rb |
nudge-0.1.1 | spec/spec_helper.rb |
nudge-0.1.0 | spec/spec_helper.rb |