Sha256: 14fd5cf48ad53f2ac9cb9ea70652763f8e2b30dcdf3e5f53752dd1ee33406ccd
Contents?: true
Size: 804 Bytes
Versions: 10
Compression:
Stored size: 804 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' require 'taskwarrior-web/command' describe TaskwarriorWeb::Command do describe '#initialize' do context 'when the command, id, and params are specified' do it 'should set the passed variables' do command = TaskwarriorWeb::Command.new('test', 3, :hello => :hi, :none => :none) command.command.should eq('test') command.id.should eq(3) command.params.should eq({ :hello => :hi, :none => :none }) end end it 'should not set an @id if none is passed' do command = TaskwarriorWeb::Command.new('test', nil, :hello => :hi, :none => :none) command.command.should eq('test') command.id.should be_nil command.params.should eq({ :hello => :hi, :none => :none }) end end end
Version data entries
10 entries across 10 versions & 1 rubygems