Project

General

Profile

« Previous | Next » 

Revision f4459c11

Added by David Davis about 8 years ago

Refs #3809 - Turning on some rubocop cops

View differences:

test/unit/location_test.rb
# new parameter on child location
child_location.location_parameters.create(:name => "child_param", :value => "123")
assert_equal( { 'loc_param' => 'abc' }, child_location.parent_params)
assert_equal({ 'loc_param' => 'abc' }, child_location.parent_params)
end
test "#params_objects should return location parameters" do
......
parent = FactoryGirl.create(:location, :name => 'a' * 245)
location = Location.new :parent => parent, :name => 'b'
refute_valid location
assert_equal _("is too long (maximum is 0 characters)"), location.errors[:name].first
assert_equal _("is too long (maximum is 0 characters)"), location.errors[:name].first
end
test ".my_locations returns all locations for admin" do

Also available in: Unified diff