Commit 0447e562a4ca24d7a42d7624859656ef6ba986cc
Exists in
master
and in
22 other branches
Merge branch 'refactoring_repository' of gitorious.org:+mezuro/noosfero/mezuro i…
…nto refactoring_repository
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
plugins/mezuro/lib/kalibro/project.rb
| ... | ... | @@ -5,7 +5,7 @@ class Kalibro::Project < Kalibro::Model |
| 5 | 5 | def self.all |
| 6 | 6 | response = request(:all_projects)[:project] |
| 7 | 7 | response = [] if response.nil? |
| 8 | - response = [response] if response.is_a? (Hash) | |
| 8 | + response = [response] if response.is_a?(Hash) | |
| 9 | 9 | response.map {|project| new project} |
| 10 | 10 | end |
| 11 | 11 | ... | ... |
plugins/mezuro/test/unit/kalibro/repository_test.rb
| ... | ... | @@ -20,7 +20,7 @@ class RepositoryTest < ActiveSupport::TestCase |
| 20 | 20 | |
| 21 | 21 | should 'get supported repository types' do |
| 22 | 22 | types = ['BAZAAR', 'GIT', 'SUBVERSION'] |
| 23 | - Kalibro::Repository.expects(:request).with(:supported_repository_types).returns({:repository_type => types}) | |
| 23 | + Kalibro::Repository.expects(:request).with(:supported_repository_types).returns({:supported_type => types}) | |
| 24 | 24 | assert_equal types, Kalibro::Repository.repository_types |
| 25 | 25 | end |
| 26 | 26 | ... | ... |