fcoury / octopi

A Ruby interface to GitHub API v2
http://hasmany.info/2009/4/18/ruby-interface-to-github-api
MIT License
216 stars 47 forks source link

undefined method 'code' #31

Open robbyrussell opened 14 years ago

robbyrussell commented 14 years ago

Am getting the following error with Octopi, running in 1.8.6. Not able to reproduce on another machine.

Octopi::User.find('robbyrussell') NoMethodError: undefined method code' for #<String:0x38cc5dc> from /opt/local/lib/ruby/gems/1.8/gems/fcoury-octopi-0.1.0/lib/octopi.rb:200:insubmit' from /opt/local/lib/ruby/gems/1.8/gems/fcoury-octopi-0.1.0/lib/octopi.rb:136:in get' from /opt/local/lib/ruby/gems/1.8/gems/fcoury-octopi-0.1.0/lib/octopi.rb:121:infind' from /opt/local/lib/ruby/gems/1.8/gems/fcoury-octopi-0.1.0/lib/octopi/resource.rb:42:in find' from /opt/local/lib/ruby/gems/1.8/gems/fcoury-octopi-0.1.0/lib/octopi/user.rb:16:infind' from (irb):1

robbyrussell commented 14 years ago

So, I decided to try and run the octopi tests.

Loaded suite /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader Started EEEE.E.E.EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE.EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE Finished in 0.734121 seconds.

1) Error: test: Authenticating should be possible using the .gitconfig. (AuthenticatedTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/authenticated_test.rb:25:inbind_1250981264_524774' ./test/../lib/octopi.rb:32:in authenticated' ./test/../lib/octopi.rb:57:inauthenticated_with' ./test/../lib/octopi.rb:31:in authenticated' ./test/authenticated_test.rb:24:inbind_1250981264_524774' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in call' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:intest: Authenticating should be possible using the .gitconfig. '

2) Error: test: Authenticating should be possible with username and password. (AuthenticatedTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/authenticated_test.rb:13:inbind_1250981264_532160' ./test/../lib/octopi.rb:57:in authenticated_with' ./test/authenticated_test.rb:11:inbind_1250981264_532160' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in call' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:intest: Authenticating should be possible with username and password. '

3) Error: test: Authenticating should be possible with username and token. (AuthenticatedTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/authenticated_test.rb:19:inbind_1250981264_593462' ./test/test_helper.rb:37:in auth' ./test/../lib/octopi.rb:57:inauthenticated_with' ./test/test_helper.rb:36:in auth' ./test/authenticated_test.rb:18:inbind_1250981264_593462' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in call' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:intest: Authenticating should be possible with username and token. '

4) Error: test: following should be able to follow a user. (AuthenticatedTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:129:inpost' ./test/../lib/octopi/self.rb:23:in follow!' ./test/api_test.rb:21:inbind_1250981264_599727' ./test/test_helper.rb:37:in auth' ./test/../lib/octopi.rb:57:inauthenticated_with' ./test/test_helper.rb:36:in auth' ./test/api_test.rb:20:inbind_1250981264_599727' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in call' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:intest: following should be able to follow a user. '

5) Error: test: keys should have some keys. (AuthenticatedTest): NoMethodError: undefined method code' for #<String:0x1925b70> ./test/../lib/octopi/api.rb:186:insubmit' ./test/../lib/octopi/api.rb:109:in get' ./test/../lib/octopi/self.rb:7:inkeys' ./test/api_test.rb:52:in __bind_1250981264_612573' ./test/test_helper.rb:37:inauth' ./test/../lib/octopi.rb:57:in authenticated_with' ./test/test_helper.rb:36:inauth' ./test/api_test.rb:51:in __bind_1250981264_612573' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:incall' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in `test: keys should have some keys. '

6) Error: test: unfollowing should be able to follow a user. (AuthenticatedTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:129:inpost' ./test/../lib/octopi/self.rb:30:in unfollow!' ./test/api_test.rb:36:inbind_1250981264_628124' ./test/test_helper.rb:37:in auth' ./test/../lib/octopi.rb:57:inauthenticated_with' ./test/test_helper.rb:36:in auth' ./test/api_test.rb:35:inbind_1250981264_628124' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in call' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:intest: unfollowing should be able to follow a user. '

7) Error: test: Octopi::Blob should find a blob. (BlobTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/repository.rb:82:in find' ./test/../lib/octopi/base.rb:59:ingather_details' ./test/../lib/octopi/blob.rb:12:in find' ./test/blob_test.rb:12:in__bind_1250981264_640893' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in call' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:intest: Octopi::Blob should find a blob. '

8) Error: test: Octopi::Branch should Be able to find a specific branch. (BranchTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/repository.rb:82:in find' ./test/../lib/octopi/base.rb:59:ingather_details' ./test/../lib/octopi/branch.rb:24:in all' ./test/branch_test.rb:16:in__bind_1250981264_647767' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in call' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:intest: Octopi::Branch should Be able to find a specific branch. '

9) Error: test: Octopi::Branch should Find all branches for a repository. (BranchTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/repository.rb:82:in find' ./test/../lib/octopi/base.rb:59:ingather_details' ./test/../lib/octopi/branch.rb:24:in all' ./test/branch_test.rb:12:in__bind_1250981264_654714' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in call' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:intest: Octopi::Branch should Find all branches for a repository. '

10) Error: test: Octopi::Commit finding a single commit should be able to specify a branch. (CommitTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/commit_test.rb:8:insetup'

11) Error: test: Octopi::Commit finding a single commit should by objects. (CommitTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/commit_test.rb:8:insetup'

12) Error: test: Octopi::Commit finding a single commit should by strings. (CommitTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/commit_test.rb:8:insetup'

13) Error: test: Octopi::Commit finding a single commit should raise an error if not found. (CommitTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/commit_test.rb:8:insetup'

14) Error: test: Octopi::Commit finding all commits should be able to find commits for a particular file. (CommitTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/commit_test.rb:8:insetup'

15) Error: test: Octopi::Commit finding all commits should be able to find commits in a private repository. (CommitTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/commit_test.rb:8:insetup'

16) Error: test: Octopi::Commit finding all commits should be able to specify a branch. (CommitTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/commit_test.rb:8:insetup'

17) Error: test: Octopi::Commit finding all commits should by objects. (CommitTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/commit_test.rb:8:insetup'

18) Error: test: Octopi::Commit finding all commits should by strings. (CommitTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/commit_test.rb:8:insetup'

19) Error: test: Octopi::Commit identifying a repository should be possible. (CommitTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/commit_test.rb:8:insetup'

20) Error: test: finding invalid sha should not work. (FileObjectTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/file_object_test.rb:8:insetup'

21) Error: test: finding with objects should work. (FileObjectTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/file_object_test.rb:8:insetup'

22) Error: test: finding with strings should work. (FileObjectTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/file_object_test.rb:8:insetup'

23) Error: test: Octopi::Gist should Find a single gist. (GistTest): RuntimeError: no attr_accessor set for g on Octopi::Gist ./test/../lib/octopi/base.rb:29:in initialize' ./test/../lib/octopi/base.rb:28:ineach' ./test/../lib/octopi/base.rb:28:in initialize' ./test/../lib/octopi/gist.rb:19:innew' ./test/../lib/octopi/gist.rb:19:in find' ./test/gist_test.rb:12:in__bind_1250981264_798203' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in call' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:intest: Octopi::Gist should Find a single gist. '

24) Error: test: Octopi::IssueSet should be able to find a specific issue. (IssueSetTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_set_test.rb:8:insetup'

25) Error: test: Octopi::IssueSet should be able to look for an issue. (IssueSetTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_set_test.rb:8:insetup'

26) Error: test: Octopi::IssueSet should not be able to find an issue that doesn't exist. (IssueSetTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_set_test.rb:8:insetup'

27) Error: test: Octopi::Issue actions should adding a label. (IssueTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_test.rb:8:insetup'

28) Error: test: Octopi::Issue actions should adding multiple labels. (IssueTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_test.rb:8:insetup'

29) Error: test: Octopi::Issue actions should be able to comment. (IssueTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_test.rb:8:insetup'

30) Error: test: Octopi::Issue actions should closing an issue. (IssueTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_test.rb:8:insetup'

31) Error: test: Octopi::Issue actions should editing an issue. (IssueTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_test.rb:8:insetup'

32) Error: test: Octopi::Issue actions should opening an issue. (IssueTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_test.rb:8:insetup'

33) Error: test: Octopi::Issue actions should re-opening an issue. (IssueTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_test.rb:8:insetup'

34) Error: test: Octopi::Issue actions should removing a label. (IssueTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_test.rb:8:insetup'

35) Error: test: Octopi::Issue actions should removing multiple labels. (IssueTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_test.rb:8:insetup'

36) Error: test: Octopi::Issue finding a single issue should be able to look for an issue. (IssueTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_test.rb:8:insetup'

37) Error: test: Octopi::Issue finding a single issue should not work, if issue doesn't exist. (IssueTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_test.rb:8:insetup'

38) Error: test: Octopi::Issue finding a single issue should work. (IssueTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_test.rb:8:insetup'

39) Error: test: Octopi::Issue finding all the issues should specifying a state. (IssueTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_test.rb:8:insetup'

40) Error: test: Octopi::Issue finding all the issues should using objects. (IssueTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_test.rb:8:insetup'

41) Error: test: Octopi::Issue finding all the issues should using strings. (IssueTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/issue_test.rb:8:insetup'

42) Error: test: KeySet should be able to find a key. (KeySetTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/key_set_test.rb:8:insetup'

43) Error: test: KeySet should not be able to find a key without a valid title. (KeySetTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/key_set_test.rb:8:insetup'

44) Error: test: Octopi::Key should be able to add a key. (KeyTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/key_test.rb:8:insetup'

45) Error: test: Octopi::Key should be able to remove a key. (KeyTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/key_test.rb:8:insetup'

46) Error: test: Octopi::RepositorySet should be able to find a repository. (RepositorySetTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_set_test.rb:8:insetup'

47) Error: test: Octopi::RepositorySet should return a repository set. (RepositorySetTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_set_test.rb:8:insetup'

48) Error: test: Octopi::Repository should be able to create a repository. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

49) Error: test: Octopi::Repository should be able to delete a repository. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

50) Error: test: Octopi::Repository should be able to find all collaborators. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

51) Error: test: Octopi::Repository should be able to find all issues. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

52) Error: test: Octopi::Repository should be able to find all open issues. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

53) Error: test: Octopi::Repository should be able to find an issue. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

54) Error: test: Octopi::Repository should be able to find the latest 30 commits. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

55) Error: test: Octopi::Repository should be able to look up the repository based on the user and name. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

56) Error: test: Octopi::Repository should be able to retrieve the branches. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

57) Error: test: Octopi::Repository should be able to retrieve the comments. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

58) Error: test: Octopi::Repository should be able to retrieve the tags. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

59) Error: test: Octopi::Repository should be able to search for similar repositories. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

60) Error: test: Octopi::Repository should have a User as the owner. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

61) Error: test: Octopi::Repository should not be able to create a repository when not authed. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

62) Error: test: Octopi::Repository should not return a repository when asked for a private one. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

63) Error: test: Octopi::Repository should return a private repository when authed. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

64) Error: test: Octopi::Repository should return a repository for a login. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

65) Error: test: Octopi::Repository should return a repository for a user. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

66) Error: test: Octopi::Repository should return more repositories if authed. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

67) Error: test: Octopi::Repository should return repositories. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

68) Error: test: Octopi::Repository should return the correct clone URL. (RepositoryTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/repository_test.rb:8:insetup'

69) Error: test: Octopi::Tag should be able to find all tags. (TagTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/repository.rb:82:in find' ./test/../lib/octopi/base.rb:59:ingather_details' ./test/../lib/octopi/tag.rb:18:in all' ./test/tag_test.rb:13:in__bind_1250981265_188317' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:in call' /opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.1/lib/shoulda/context.rb:253:intest: Octopi::Tag should be able to find all tags. '

70) Error: test: User should be able to find a user. (UserTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/user_test.rb:8:insetup'

71) Error: test: User should be able to look for a user, using find_all. (UserTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/user_test.rb:8:insetup'

72) Error: test: User should be able to search for a user. (UserTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/user_test.rb:8:insetup'

73) Error: test: User should not be able to find a user that doesn't exist. (UserTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/user_test.rb:8:insetup'

74) Error: test: authenticated return a list of followers should in object format. (UserTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/user_test.rb:8:insetup'

75) Error: test: authenticated return a list of followers should in string format. (UserTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/user_test.rb:8:insetup'

76) Error: test: authenticated return a list of people who they are following should in object format. (UserTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/user_test.rb:8:insetup'

77) Error: test: authenticated return a list of people who they are following should in string format. (UserTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/user_test.rb:8:insetup'

78) Error: test: authenticated should return all user information. (UserTest): NoMethodError: undefined method state' for nil:NilClass /opt/local/lib/ruby/gems/1.8/gems/api_cache-0.0.2/lib/api_cache.rb:44:inget' ./test/../lib/octopi/api.rb:165:in submit' ./test/../lib/octopi/api.rb:109:inget' ./test/../lib/octopi/api.rb:91:in find' ./test/../lib/octopi/resource.rb:41:infind' ./test/../lib/octopi/user.rb:23:in find' ./test/user_test.rb:8:insetup'

82 tests, 6 assertions, 0 failures, 78 errors rake aborted! Command failed with status (1): [/opt/local/bin/ruby -I"lib:lib:test" "/opt...]

(See full trace by running task with --trace)

robbyrussell commented 14 years ago

Okay, figured it out. I had an old version of httparty. Upgrading that to 0.4.x fixed my main issue. Tests don't run for me though.

radar commented 14 years ago

robby, are you still getting the same issue or is it something else? Try upgrading your fakeweb too.

radar commented 14 years ago

All the tests pass for me, let me know if you have issues.