Sha256: 6ac21b7afae602589abc53d0fe536056553883a7ffc04e22b794c402d1eb4528

Contents?: true

Size: 423 Bytes

Versions: 3

Compression:

Stored size: 423 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'
require 'taskwarrior-web/model/config'
require 'ostruct'

describe TaskwarriorWeb::Config do
  describe '.property' do
    it 'should call #[] on the config file object' do
      file = {}
      TaskwarriorWeb::Config.should_receive(:store).and_return(file)
      file.should_receive(:[]).with('testing')
      TaskwarriorWeb::Config.property('testing')
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
taskwarrior-web-1.1.12 spec/model/config_spec.rb
taskwarrior-web-1.1.11 spec/model/config_spec.rb
taskwarrior-web-1.1.10 spec/model/config_spec.rb