File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 6868 context "on Windows platform" do
6969 before do
7070 stub_const ( "RUBY_PLATFORM" , "mswin" )
71+ stub_const ( "TEST_ASSET_TAG" , "test-asset-tag" )
7172 end
7273
7374 it "calls get_chassis_asset_tag_windows" do
74- expect ( mixin ) . to receive ( :get_chassis_asset_tag_windows ) . and_return ( "test-asset-tag" )
75- expect ( mixin . chassis_asset_tag ) . to eq ( "test-asset-tag" )
75+ expect ( mixin ) . to receive ( :get_chassis_asset_tag_windows ) . and_return ( TEST_ASSET_TAG )
76+ expect ( mixin . chassis_asset_tag ) . to eq ( TEST_ASSET_TAG )
7677 end
7778 end
7879
8283 end
8384
8485 it "calls get_chassis_asset_tag_linux" do
85- expect ( mixin ) . to receive ( :get_chassis_asset_tag_linux ) . and_return ( "test-asset-tag" )
86- expect ( mixin . chassis_asset_tag ) . to eq ( "test-asset-tag" )
86+ expect ( mixin ) . to receive ( :get_chassis_asset_tag_linux ) . and_return ( TEST_ASSET_TAG )
87+ expect ( mixin . chassis_asset_tag ) . to eq ( TEST_ASSET_TAG )
8788 end
8889 end
8990 end
You can’t perform that action at this time.
0 commit comments