blob: 0ef3660f5d8945c545bd42487b96a8118d520ea7 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 | require 'spec_helper'
# describe GtfsExport, :type => :model do
#
#   describe "#time_zone" do
#
#     context "when exported data are not StopAreas" do
#
#       before do
#         subject.references_type = "network"
#       end
#
#       it "should be mandatory" do
#         should validate_presence_of(:time_zone)
#       end
#
#     end
#
#     context "when export data are StopArea" do
#
#       before do
#         subject.references_type = "stop_area"
#       end
#
#       it "should be mandatory" do
#         should_not validate_presence_of(:time_zone)
#       end
#
#     end
#
#   end
#
# end
 |