kalibro_ranges.rb 1.12 KB
# This file is part of KalibroEntities
# Copyright (C) 2013  it's respectives authors (please see the AUTHORS file)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

FactoryGirl.define do
  factory :kalibro_range do
    beginning 1.1
    self.end 5.1
    reading_id 3
    comments "Comment"
    metric_configuration_id 32

    trait :another_comment do
      comments "Another Comment"
    end

    trait :with_id do
      id 1
    end

    factory :kalibro_range_with_id, traits: [:with_id]
    factory :another_kalibro_range, traits: [:another_comment]
  end
end