Sha256: 3c8d81fad4d022eab56ee6b882561f6b237918790d1be4de35febafaf6efb40c
Contents?: true
Size: 733 Bytes
Versions: 14
Compression:
Stored size: 733 Bytes
Contents
RSpec.describe Card::Set::All::Follow::FollowLinkViews do context "when not following" do def format_subject _format=nil Card["A"].format(:html) end specify "view :follow_link" do expect_view(:follow_button).to have_tag("a") do with_text "follow" end end end context "when already following", with_user: "John" do def format_subject _format=nil Card["John Following"].format(:html) end specify "view :follow_link" do expect_view(:follow_button).to have_tag("a", with: { "data-hover-text": "unfollow" }) do with_text "following" end end end end
Version data entries
14 entries across 14 versions & 1 rubygems