spec/pupil_spec.rb in pupil-0.1.5 vs spec/pupil_spec.rb in pupil-0.2.0
- old
+ new
@@ -48,11 +48,11 @@
end
describe Pupil, "が #user_timeline を呼ぶ時は" do
before do
pupil = Pupil.new PUPIL_TESTKEY
- @user_timeline = pupil.user_timeline :screen_name => pupil.screen_name
+ @user_timeline = pupil.user_timeline pupil.screen_name
end
it "Array型を返すこと" do
@user_timeline.class.should == Array
end
@@ -75,12 +75,12 @@
end
describe Pupil, "が #follow を呼ぶ時は" do
before do
pupil = Pupil.new PUPIL_TESTKEY
- @follow = pupil.follow :screen_name => KNOWN_NONFOLLOWED_USER
- @follow_fail = pupil.follow :screen_name => UNKNOWN_USER
+ @follow = pupil.follow KNOWN_NONFOLLOWED_USER
+ @follow_fail = pupil.follow UNKNOWN_USER
end
it "フォローに成功した場合はPupil::User型を返すこと" do
@follow.class.should == Pupil::User
end
@@ -91,12 +91,12 @@
end
describe Pupil, "が #unfollow を呼ぶ時は" do
before do
pupil = Pupil.new PUPIL_TESTKEY
- @unfollow = pupil.unfollow :screen_name => KNOWN_NONFOLLOWED_USER
- @unfollow_fail = pupil.unfollow :screen_name => UNKNOWN_USER
+ @unfollow = pupil.unfollow KNOWN_NONFOLLOWED_USER
+ @unfollow_fail = pupil.unfollow UNKNOWN_USER
end
it "成功した場合はPupil::User型を返すこと" do
@unfollow.class.should == Pupil::User
end
@@ -107,12 +107,12 @@
end
describe Pupil, "が #block を呼ぶ時は" do
before do
pupil = Pupil.new PUPIL_TESTKEY
- @block = pupil.block :screen_name => KNOWN_NONFOLLOWED_USER
- @block_fail = pupil.block :screen_name => UNKNOWN_USER
+ @block = pupil.block KNOWN_NONFOLLOWED_USER
+ @block_fail = pupil.block UNKNOWN_USER
end
it "成功した場合はPupil::User型を返すこと" do
@block.class.should == Pupil::User
end
@@ -123,11 +123,11 @@
end
describe Pupil, "が #unblock を呼ぶ時は" do
before do
pupil = Pupil.new PUPIL_TESTKEY
- @unblock = pupil.unblock :screen_name => KNOWN_NONFOLLOWED_USER
- @unblock_fail = pupil.unblock :screen_name => UNKNOWN_USER
+ @unblock = pupil.unblock KNOWN_NONFOLLOWED_USER
+ @unblock_fail = pupil.unblock UNKNOWN_USER
end
it "成功した場合はPupil::User型を返すこと" do
@unblock.class.should == Pupil::User
end
\ No newline at end of file