Sha256: f02ffb49c349ae1e46e77764cac45cf8d6b37ae4dfd8b9b6216e9ff7f27f0b86
Contents?: true
Size: 987 Bytes
Versions: 69
Compression:
Stored size: 987 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe "Array" do before(:each) do @array = ["run this", "run that"] end describe "runnable" do it "should be able to produced a runnable string" do;@array.runnable.should == 'run this && run that';end it "should be turn into a string" do;@array.runnable.class.should == String;end end describe "nice_runnable" do before(:each) do @array << "" @array << "peabody" end it "should reject any empty elements out of the array" do (@array << [""]).nice_runnable.should == "run this \n run that \n peabody" end end describe "to_os" do it "should be able to turn itself to an open struct" do; @array.first.should_receive(:to_os);end after do @array.to_os end end describe "to_option_string" do it "should map the to_option_strings in an array of strings" do ["hi", "be"].to_option_string.should == "[ 'hi', 'be' ]" end end end
Version data entries
69 entries across 69 versions & 2 rubygems