Skip to content

Commit e51a2fe

Browse files
committed
cleanup bad test
1 parent cdb0d3a commit e51a2fe

2 files changed

Lines changed: 12 additions & 13 deletions

File tree

test/sanity/configuration_test.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
55
describe Sanity::Configuration do
66
subject { Sanity::Configuration.new }
77

8+
after do
9+
Sanity.use_global_config = false
10+
Sanity.configure do |config|
11+
config.project_id = ""
12+
config.dataset = ""
13+
config.api_version = ""
14+
config.token = ""
15+
config.use_cdn = false
16+
end
17+
end
18+
819
it { assert_equal "", subject.project_id }
920
it { assert_equal "", subject.dataset }
1021
it { assert_equal "", subject.api_version }

test/sanity/http/where_test.rb

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,7 @@
77
let(:resource_class) do
88
Class.new do
99
def self.where_api_endpoint
10-
"query/production"
11-
end
12-
13-
def self.project_id
14-
"test-project"
15-
end
16-
17-
def self.dataset
18-
"production"
19-
end
20-
21-
def self.api_version
22-
"v1"
10+
"test"
2311
end
2412
end
2513
end

0 commit comments

Comments
 (0)