|
532 | 532 | end |
533 | 533 | end |
534 | 534 |
|
535 | | - if Capybara::VERSION.to_f < 3.0 |
536 | | - it "returns BR as a space in #text" do |
537 | | - @session.visit "/cuprite/simple" |
538 | | - expect(@session.find(:css, "#break").text).to eq("Foo Bar") |
539 | | - end |
540 | | - else |
541 | | - it "returns BR as new line in #text" do |
542 | | - @session.visit "/cuprite/simple" |
543 | | - expect(@session.find(:css, "#break").text).to eq("Foo\nBar") |
544 | | - end |
| 535 | + it "returns BR as new line in #text" do |
| 536 | + @session.visit "/cuprite/simple" |
| 537 | + expect(@session.find(:css, "#break").text).to eq("Foo\nBar") |
545 | 538 | end |
546 | 539 |
|
547 | 540 | it "handles hash changes" do |
|
871 | 864 | expect(@session.find(:css, "#bar").text).to eq "bar" |
872 | 865 | end |
873 | 866 |
|
874 | | - if Capybara::VERSION.to_f < 3.0 |
875 | | - it "gets text stripped whitespace and nbsp" do |
876 | | - expect(@session.find(:css, "#baz").text).to eq "baz" |
877 | | - end |
878 | | - |
879 | | - it "gets text stripped whitespace, nbsp and unicode whitespace" do |
880 | | - expect(@session.find(:css, "#qux").text).to eq "qux" |
881 | | - end |
882 | | - else |
883 | | - it "gets text stripped whitespace and then converts nbsp to space" do |
884 | | - expect(@session.find(:css, "#baz").text).to eq " baz " |
885 | | - end |
| 867 | + it "gets text stripped whitespace and then converts nbsp to space" do |
| 868 | + expect(@session.find(:css, "#baz").text).to eq " baz " |
| 869 | + end |
886 | 870 |
|
887 | | - it "gets text stripped whitespace" do |
888 | | - expect(@session.find(:css, "#qux").text).to eq " \u3000 qux \u3000 " |
889 | | - end |
| 871 | + it "gets text stripped whitespace" do |
| 872 | + expect(@session.find(:css, "#qux").text).to eq " \u3000 qux \u3000 " |
890 | 873 | end |
891 | 874 | end |
892 | 875 |
|
|
0 commit comments