Sha256: f443fc1ab0808b69e4738a4b2b7d73fe4e5a1ba364a9c2d580c82ea124d8ab26

Contents?: true

Size: 589 Bytes

Versions: 1

Compression:

Stored size: 589 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', '..', 'spec_helper')

describe Yad::Maintenance::SharedSystem do

  it "should build the turn on command" do
    cmd = Yad::Maintenance::SharedSystem.build_turn_on_command('path/to/shared/directory')
    cmd.should eql("cp -f path/to/shared/directory/config/maintenance.html path/to/shared/directory/system/")
  end

  it "should build the turn off command" do
    cmd = Yad::Maintenance::SharedSystem.build_turn_off_command('path/to/shared/directory')
    cmd.should eql("rm -f path/to/shared/directory/system/maintenance.html")
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yad-0.0.4 spec/yad/maintenance/shared_system_spec.rb