Sha256: ff1ef81e0ba37338aa2ba65a22825920507fb02558de5b4168248861562d47f8

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 Bytes

Contents

require "spec"
require "sketches"

describe "Basic Sketches usage" do
  before(:each) do
    @file_to_open = nil
    Sketches.config :editor => lambda { |fn| @file_to_open = fn; "" }
  end

  it "should open a sketch from a given file" do
    sketch_from "test_file"
    @file_to_open.should == "test_file"
  end

  it "should open a sketch in a temp directory" do
    sketch
    @file_to_open.should match(/sketch.*\.rb$/)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sketches-0.1.1 spec/sketches_spec.rb