|
101 | 101 | end |
102 | 102 | end |
103 | 103 |
|
104 | | - describe "#display_descriptions_on_features_page" do |
| 104 | + describe "#show_feature_description_in_list" do |
105 | 105 | it "has default value" do |
106 | | - expect(configuration.display_descriptions_on_features_page).to eq(false) |
| 106 | + expect(configuration.show_feature_description_in_list).to eq(false) |
107 | 107 | end |
108 | 108 |
|
109 | 109 | it "can be updated" do |
110 | | - configuration.display_descriptions_on_features_page = true |
111 | | - expect(configuration.display_descriptions_on_features_page).to eq(true) |
| 110 | + configuration.show_feature_description_in_list = true |
| 111 | + expect(configuration.show_feature_description_in_list).to eq(true) |
112 | 112 | end |
113 | 113 | end |
114 | 114 |
|
115 | | - describe "#display_descriptions_on_features_page?" do |
116 | | - subject { configuration.display_descriptions_on_features_page? } |
| 115 | + describe "#show_feature_description_in_list?" do |
| 116 | + subject { configuration.show_feature_description_in_list? } |
117 | 117 |
|
118 | | - context 'when using_descriptions? is false and display_descriptions_on_features_page is false' do |
| 118 | + context 'when using_descriptions? is false and show_feature_description_in_list is false' do |
119 | 119 | it { is_expected.to eq(false) } |
120 | 120 | end |
121 | 121 |
|
122 | | - context 'when using_descriptions? is false and display_descriptions_on_features_page is true' do |
123 | | - before { configuration.display_descriptions_on_features_page = true } |
| 122 | + context 'when using_descriptions? is false and show_feature_description_in_list is true' do |
| 123 | + before { configuration.show_feature_description_in_list = true } |
124 | 124 | it { is_expected.to eq(false) } |
125 | 125 | end |
126 | 126 |
|
127 | | - context 'when using_descriptions? is true and display_descriptions_on_features_page is false' do |
| 127 | + context 'when using_descriptions? is true and show_feature_description_in_list is false' do |
128 | 128 | before { allow(configuration).to receive(:using_descriptions?).and_return(true) } |
129 | 129 | it { is_expected.to eq(false) } |
130 | 130 | end |
131 | 131 |
|
132 | | - context 'when using_descriptions? is true and display_descriptions_on_features_page is true' do |
| 132 | + context 'when using_descriptions? is true and show_feature_description_in_list is true' do |
133 | 133 | before do |
134 | 134 | allow(configuration).to receive(:using_descriptions?).and_return(true) |
135 | | - configuration.display_descriptions_on_features_page = true |
| 135 | + configuration.show_feature_description_in_list = true |
136 | 136 | end |
137 | 137 | it { is_expected.to eq(true) } |
138 | 138 | end |
|
0 commit comments