Sha256: d03b223dbf1fc29a56eec628833dec3dfe339f96a6549843aa026b844c723563
Contents?: true
Size: 931 Bytes
Versions: 4
Compression:
Stored size: 931 Bytes
Contents
require 'helper_spec' require 'matlab_queue' require 'pp' describe "Test Matlab Queue Operations" do before(:each) do @q = q = MatlabQueue.new end it "should add a command" do @q.length.should equal 0 @q.commands << "1 + 2" @q.length.should equal 1 @q.commands << "2 + 3" @q.length.should equal 2 @q.to_s.should == "1 + 2; 2 + 3" end it "should add to the path" do @q.paths.length.should equal 0 @q.paths << File.dirname(__FILE__) @q.paths.length.should equal 1 end it "should generate a good string with paths and commands" do @q.paths << File.dirname(__FILE__) @q.commands << "1 + 2" @q.to_s.should == "addpath(genpath('#{File.dirname(__FILE__)}')); 1 + 2" end it "should run matlab successfully." do @q.paths << File.dirname(__FILE__) @q.commands << "1 + 2" @q.run!.should be_true @q.success.should be_true end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rpipe-0.1.0 | spec/matlab_queue_spec.rb |
rpipe-0.0.3 | spec/matlab_queue_spec.rb |
rpipe-0.0.2 | spec/matlab_queue_spec.rb |
rpipe-0.0.1 | spec/matlab_queue_spec.rb |