Skip to content

Commit

Permalink
test is green again.
Browse files Browse the repository at this point in the history
  • Loading branch information
manxingxing committed Aug 13, 2013
1 parent 1a9dd8a commit dbf84ab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/controllers/datacolumns_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def dataset_edit_message
end

def redirect_if_datagroup_unapproved
unless datagroup_id
unless @datacolumn.datagroup_id
flash[:error] = "Please approve the datagroup before approving invalid values"
redirect_to approve_datagroup_datacolumn_path(@datacolumn)
end
Expand Down
2 changes: 1 addition & 1 deletion app/models/dataworkbook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def add_acknowledged_people(columnheader, data_column_new)
end
unless ppl[:unfound_usernames].blank?
message = "These persons could not be matched within the portal: #{ppl[:unfound_usernames].join(', ')}"
data_column_new.informationsource = message
data_column_new.update_attribute :informationsource, message
end
end

Expand Down
2 changes: 1 addition & 1 deletion app/views/datacolumns/approve_invalid_values.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%h3 Approve invalid values
- if @datacolumn.datagroup.present?
- if @datacolumn.datagroup.blank?
%p
Please #{link_to 'Approve the datagroup', approve_datagroup_datacolumn_path(@datacolumn)} first.
- else
Expand Down
2 changes: 1 addition & 1 deletion test/unit/dataworkbook_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def setup

test 'row in method sheet is recognized correctly' do
column_info, datagroup_info = @book.parse_method_row('height')
assert_equal 11, column_info.keys.length
assert_equal 12, column_info.keys.length
assert_equal 5, datagroup_info.keys.length

assert_equal 'height in m', column_info[:definition]
Expand Down

0 comments on commit dbf84ab

Please sign in to comment.