Sha256: 5c6ca6d67f3fd6142e74e11e6a52cdd15b9498d861456632f6c54555a1281aea

Contents?: true

Size: 714 Bytes

Versions: 5

Compression:

Stored size: 714 Bytes

Contents

require 'spec_helper'

describe Stasis::Server do

  before(:all) do
    generate
    @thread = Thread.new do
      Stasis::Server.new($fixture, :server => 'localhost:6379/0')
    end
  end

  after(:all) do
    @thread.kill
  end
  
  it "should change time.html" do
    time = $files['time.html'].split("time")[1].strip
    new_time = Stasis::Server.push(
      :paths => [ 'time.html.haml' ],
      :redis => 'localhost:6379/0',
      :return => true
    )['time.html.haml'].split("time")[1].strip
    time.should_not == new_time
    generate_files
    new_time_from_file = $files['time.html'].split("time")[1].strip
    new_time_from_file.should == new_time
    new_time_from_file.should_not == time
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stasis-0.1.4 spec/stasis/server_spec.rb
stasis-0.1.3 spec/stasis/server_spec.rb
stasis-0.1.2 spec/stasis/server_spec.rb
stasis-0.1.1 spec/stasis/server_spec.rb
stasis-0.1.0 spec/stasis/server_spec.rb