File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 11
11
12
12
describe '#have_attribute' do
13
13
it { expect ( doc ) . to have_attribute ( :one ) }
14
+ it { expect ( doc ) . to have_attribute ( 'one' ) }
14
15
it { expect ( doc ) . not_to have_attribute ( :five ) }
16
+ it { expect ( doc ) . not_to have_attribute ( 'five' ) }
15
17
end
16
18
17
19
describe '#have_jsonapi_attributes' do
18
20
it { expect ( doc ) . to have_jsonapi_attributes ( :one , :two ) }
21
+ it { expect ( doc ) . to have_jsonapi_attributes ( 'one' , 'two' ) }
19
22
it { expect ( doc ) . not_to have_jsonapi_attributes ( :two , :five ) }
23
+ it { expect ( doc ) . not_to have_jsonapi_attributes ( 'two' , 'five' ) }
20
24
it { expect ( doc ) . to have_jsonapi_attributes ( :one , :two , :four ) . exactly }
21
- it { expect ( doc ) . not_to have_jsonapi_attributes ( :one ) . exactly }
25
+ it { expect ( doc ) . to have_jsonapi_attributes ( 'one' , 'two' , 'four' ) . exactly }
26
+ it { expect ( doc ) . not_to have_jsonapi_attributes ( 'one' ) . exactly }
27
+ it { expect ( doc ) . not_to have_jsonapi_attributes ( 'one' ) . exactly }
22
28
end
23
29
end
Original file line number Diff line number Diff line change 11
11
context '#have_link' do
12
12
it { expect ( doc ) . to have_link ( :self ) }
13
13
it { expect ( doc ) . to have_link ( :self ) . with_value ( 'self_link' ) }
14
+ it { expect ( doc ) . to have_link ( 'self' ) }
15
+ it { expect ( doc ) . to have_link ( 'self' ) . with_value ( 'self_link' ) }
14
16
it { expect ( doc ) . not_to have_link ( :self ) . with_value ( 'any_link' ) }
15
17
it { expect ( doc ) . not_to have_link ( :any ) }
18
+ it { expect ( doc ) . not_to have_link ( 'self' ) . with_value ( 'any_link' ) }
19
+ it { expect ( doc ) . not_to have_link ( 'any' ) }
16
20
end
17
21
18
22
context '#have_links' do
19
23
it { expect ( doc ) . to have_links ( :self , :related ) }
20
24
it { expect ( doc ) . not_to have_links ( :self , :other ) }
25
+ it { expect ( doc ) . to have_links ( 'self' , 'related' ) }
26
+ it { expect ( doc ) . not_to have_links ( 'self' , 'other' ) }
21
27
end
22
28
end
You can’t perform that action at this time.
0 commit comments