Sha256: a4d7117dfdb35a3259ccf4810dd17ac2fd438d2fec80b9f71c249451365cfb23

Contents?: true

Size: 349 Bytes

Versions: 3

Compression:

Stored size: 349 Bytes

Contents

require 'spec_helper'

describe Layout do
  it "creates the directory structure" do
    action = Class.new do
      def create
        puts "hey, create"
      end
    end

    layout = Layout.new
    layout.actions << action.new

    result = capture(:stdout) do
      layout.create
    end

    expect(result.chomp).to eq('hey, create')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pointrb-0.1.2 spec/layout/layout_spec.rb
pointrb-0.1.1 spec/layout/layout_spec.rb
pointrb-0.1.0 spec/layout/layout_spec.rb