Skip to content

Commit 530810e

Browse files
committed
Eliminate instance variable in specs
1 parent 24efc88 commit 530810e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

spec/meilisearch/client/requests_spec.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,16 @@
44
let(:key) { SecureRandom.uuid }
55

66
before(:each) do
7-
@client = MeiliSearch::Client.new(URL, MASTER_KEY)
8-
97
expect(MeiliSearch::Client).to receive(:post)
108
.with(kind_of(String), hash_including(body: "{\"primaryKey\":\"#{key}\",\"uid\":\"#{key}\"}"))
119
.and_call_original
1210
end
1311

1412
it 'parses options when they are in a snake_case' do
15-
@client.create_index(key, primary_key: key)
13+
client.create_index(key, primary_key: key)
1614
end
1715

1816
it 'parses options when they are in a different shape' do
19-
@client.create_index(key, priMARy_kEy: key)
17+
client.create_index(key, priMARy_kEy: key)
2018
end
2119
end

0 commit comments

Comments
 (0)