spec/timelog4r_spec.rb in timelog4r-0.1.2 vs spec/timelog4r_spec.rb in timelog4r-0.2.0
- old
+ new
@@ -331,11 +331,11 @@
@accessor.password = 'dummy'
@accessor.should_receive(:http_access).once.and_return(true)
end
it 'success should be true' do
- @accessor.update('hoge').should be_true
+ @accessor.update('hoge', 'fuga').should be_true
end
after do
@accessor.user_id = nil
@accessor.password = nil
@@ -365,11 +365,11 @@
@accessor.password = 'dummy'
@accessor.should_receive(:http_access).once.and_return(true)
end
it 'success should be true' do
- @accessor.set_todo('hoge', Time.new).should be_true
+ @accessor.set_todo('hoge','fuga', Time.new).should be_true
end
after do
@accessor.user_id = nil
@accessor.password = nil
@@ -382,11 +382,11 @@
@accessor.password = 'dummy'
@accessor.should_receive(:http_access).once.and_return(true)
end
it 'success should be true' do
- @accessor.update_bookmark('hoge', URI.parse('http://a.com')).should be_true
+ @accessor.update_bookmark('hoge', 'fuga', URI.parse('http://a.com')).should be_true
end
after do
@accessor.user_id = nil
@accessor.password = nil
@@ -399,11 +399,11 @@
@accessor.password = 'dummy'
@accessor.should_receive(:http_access).once.and_return(true)
end
it 'success should be true' do
- @accessor.update_good('hoge', 'fuga', ['moge']).should be_true
+ @accessor.update_good('hoge', 'fuga').should be_true
end
after do
@accessor.user_id = nil
@accessor.password = nil
@@ -416,11 +416,11 @@
@accessor.password = 'dummy'
@accessor.should_receive(:http_access).once.and_return(true)
end
it 'success should be true' do
- @accessor.update_news('hoge').should be_true
+ @accessor.update_news('hoge', 'fuga').should be_true
end
after do
@accessor.user_id = nil
@accessor.password = nil
@@ -433,10 +433,10 @@
@accessor.password = 'dummy'
@accessor.should_receive(:http_access).once.and_return(true)
end
it 'success should be true' do
- @accessor.update_vote('hoge').should be_true
+ @accessor.update_vote('hoge', 'fuga').should be_true
end
after do
@accessor.user_id = nil
@accessor.password = nil