Sha256: 420429add01bedf1cbdc1502d15995d65c84ac2ee3ddadab40195c52384de149
Contents?: true
Size: 481 Bytes
Versions: 2
Compression:
Stored size: 481 Bytes
Contents
require 'spec_helper' describe 'job' do job 'foo-main' do end Pushpop.jobs.first.name.should == 'foo-main' end describe Pushpop do describe 'add_job' do it 'should add a job to the list' do empty_proc = Proc.new {} Pushpop.add_job('foo', &empty_proc) Pushpop.jobs.first.name.should == 'foo' end end describe 'random_name' do it 'should be 8 characters and alphanumeric' do Pushpop.random_name.should =~ /^\w{8}$/ end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pushpop-0.1.1 | spec/pushpop_spec.rb |
pushpop-0.1.0 | spec/pushpop_spec.rb |