|
183 | 183 |
|
184 | 184 | include_examples "constructor accepts plain or typed values", good |
185 | 185 | include_examples "constructor rejects values from this list", bad |
| 186 | + |
| 187 | + describe ".alignment" do |
| 188 | + # this overly specific test avoids a redundant alignment call |
| 189 | + # in the production code |
| 190 | + it "returns the correct value" do |
| 191 | + expect(described_class.alignment).to eq 4 |
| 192 | + end |
| 193 | + end |
186 | 194 | end |
187 | 195 |
|
188 | 196 | describe DBus::Data::ObjectPath do |
|
198 | 206 |
|
199 | 207 | include_examples "constructor accepts plain or typed values", good |
200 | 208 | include_examples "constructor rejects values from this list", bad |
| 209 | + |
| 210 | + describe ".alignment" do |
| 211 | + # this overly specific test avoids a redundant alignment call |
| 212 | + # in the production code |
| 213 | + it "returns the correct value" do |
| 214 | + expect(described_class.alignment).to eq 4 |
| 215 | + end |
| 216 | + end |
201 | 217 | end |
202 | 218 |
|
203 | 219 | describe DBus::Data::Signature do |
|
215 | 231 |
|
216 | 232 | include_examples "constructor accepts plain or typed values", good |
217 | 233 | include_examples "constructor rejects values from this list", bad |
| 234 | + |
| 235 | + describe ".alignment" do |
| 236 | + # this overly specific test avoids a redundant alignment call |
| 237 | + # in the production code |
| 238 | + it "returns the correct value" do |
| 239 | + expect(described_class.alignment).to eq 1 |
| 240 | + end |
| 241 | + end |
218 | 242 | end |
219 | 243 | end |
220 | 244 |
|
|
0 commit comments