小编aus*_*ing的帖子

在`expect`测试中,Rspec`eq`对`eql`

使用eqeql在rspec测试中有什么区别?是否有区别:

it "adds the correct information to entries" do
  # book = AddressBook.new # => Replaced by line 4
  book.add_entry('Ada Lovelace', '010.012.1815', 'augusta.king@lovelace.com')
  new_entry = book.entries[0]

  expect(new_entry.name).to eq('Ada Lovelace')
  expect(new_entry.phone_number).to eq('010.012.1815')
  expect(new_entry.email).to eq('augusta.king@lovelace.com')
end
Run Code Online (Sandbox Code Playgroud)

和:

it "adds the correct information to entries" do
  # book = AddressBook.new # => Replaced by line 4
  book.add_entry('Ada Lovelace', '010.012.1815', 'augusta.king@lovelace.com')
  new_entry = book.entries[0]

  expect(new_entry.name).to eql('Ada Lovelace')
  expect(new_entry.phone_number).to eql('010.012.1815')
  expect(new_entry.email).to eql('augusta.king@lovelace.com')
end
Run Code Online (Sandbox Code Playgroud)

ruby rspec

29
推荐指数
2
解决办法
1万
查看次数

无法设置WooCommerce商店基页和商店标题

我有一个woocommerce的问题,我的商店页面取得了第一个产品的标题,并将其用作商店标题......我想我可以通过设置商店的基页来解决这个问题,但我找不到在WooCommerce设置中执行此操作的设置.正如您所看到的,商店基页未在后端设置,但我看不到设置它的选项.WC页面设置

我也搜索过,似乎在我的问题上找不到多少.这是我指的商店:http://museumofbuford.com/shop/

wordpress woocommerce

2
推荐指数
1
解决办法
3563
查看次数

标签 统计

rspec ×1

ruby ×1

woocommerce ×1

wordpress ×1